Percona-Lab / mongodb_consistent_backup

A tool for performing consistent backups of MongoDB Clusters or Replica Sets
https://www.percona.com
Apache License 2.0
276 stars 81 forks source link

Backup only selected database #263

Open ya-kostik opened 6 years ago

ya-kostik commented 6 years ago

Hi!

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

timvaillancourt commented 6 years ago

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.

ya-kostik commented 6 years ago

Thank you @timvaillancourt!

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

timvaillancourt commented 5 years ago

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

ya-kostik commented 5 years ago

Hi @timvaillancourt, It would be nice!

dbmurphy commented 5 years ago

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 <notifications@github.com 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 .