Search code examples
mongodbmongodump

Mongodump for Daily Backups


I am considering using mongodump for daily backups.

If I always perform the dump on the same directory: do I have to make sure to clear the contents from the previous day, before running mongodump? I could not find anything about this in the documentation.


Solution

  • No, mongodump will overwrite any contents in the directory, so you're safe to use the same one.