-
Notifications
You must be signed in to change notification settings - Fork 81
Backup only selected database #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @ya-kostik. All databases/collections are backed up by this tool, by design. You're able to restore only a specific database/collection using the mongorestore '--db=' and '--collection=' flags. |
Thank you @timvaillancourt! Do I get it right, that it's a feature, not a bug? |
Hi @ya-kostik I would say backing up a single database is a feature request, not a bug. |
Hi @timvaillancourt, It would be nice! |
I would argue this should not be a feature as the name implys a consistent
backup which can not be a single schema if any table of the schema is
sharded. If it's not sharded mongodump --oplog --database solves this
already
…On Thu 20 Dec 2018, 3:07 p.m. Constantin Tsukanov ***@***.*** wrote:
Hi @timvaillancourt <https://github.com/timvaillancourt>, It would be
nice!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#263 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADtQPIPHa6C51M4C00SUpK98s6S5kIa_ks5u66ecgaJpZM4UrXfn>
.
|
Hi!
How I can selecting database to backup?
Now all databases are being copied. How can I specify a name for one of them?
The text was updated successfully, but these errors were encountered: