Guest User

Untitled

a guest
Nov 28th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/bash
  2. FREEZERO_DB='freezero'
  3. FREEZERO_REPSET=''
  4. FREEZERO_USERNAME=''
  5. FREEZERO_PASSWORD=''
  6.  
  7. TARGET_REPSET=''
  8. TARGET_USERNAME=''
  9. TARGET_PASSWORD=''
  10.  
  11. 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