Maybe I'm missing something, but it seems that there is no way with mongodump to easily dump the entire database into a tarball. Is there anyway to do this? My current solution is rather cludgy and I'd like it to be easier to backup and restore.
I'm doing:
backups:
1. mongo dump to directory
2. tar up directory
3. copy to archive server
restore:
1. copy from archive server
2. untar to file system
3. run mongorestore
Ideally, I'd like it to be:
backups:
1. mongodump | tar -cf - > backup file
2. copy to archive server
restores:
1. copy from archive server
2. tar -xOf <file> | mongorestore
Thanks,
Chris