Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Clean up previous dump files
- rm -r dump/*
- # Dump the current database state into 'dump' folder
- mongodump --db=$1
- # Move the files from dump/projectName to dump
- mv dump/$1/* dump
- # Delete dump/projectName folder
- rm -r dump/$1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement