mongodb_consistent_backup icon indicating copy to clipboard operation
mongodb_consistent_backup copied to clipboard

Backup only selected database

Open ya-kostik opened this issue 6 years ago • 5 comments

Hi!

How I can selecting database to backup? Now all databases are being copied. How can I specify a name for one of them?

ya-kostik avatar Jun 18 '18 08:06 ya-kostik

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.

timvaillancourt avatar Jul 28 '18 22:07 timvaillancourt

Thank you @timvaillancourt!

Do I get it right, that it's a feature, not a bug? Does this drive and network overload?

ya-kostik avatar Jul 29 '18 11:07 ya-kostik

Hi @ya-kostik I would say backing up a single database is a feature request, not a bug.

timvaillancourt avatar Dec 07 '18 21:12 timvaillancourt

Hi @timvaillancourt, It would be nice!

ya-kostik avatar Dec 20 '18 15:12 ya-kostik

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 <[email protected] 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 https://github.com/Percona-Lab/mongodb_consistent_backup/issues/263#issuecomment-449028796, or mute the thread https://github.com/notifications/unsubscribe-auth/ADtQPIPHa6C51M4C00SUpK98s6S5kIa_ks5u66ecgaJpZM4UrXfn .

dbmurphy avatar Dec 20 '18 15:12 dbmurphy