Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- FREEZERO_DB='freezero'
- FREEZERO_REPSET=''
- FREEZERO_USERNAME=''
- FREEZERO_PASSWORD=''
- TARGET_REPSET=''
- TARGET_USERNAME=''
- TARGET_PASSWORD=''
- mongodump --archive --db=$FREEZERO_DB --host=$FREEZERO_REPSET --username=$FREEZERO_USERNAME --password=$FREEZERO_PASSWORD | mongorestore --archive --host=$TARGET_REPSET
Add Comment
Please, Sign In to add comment