Skip to content

Instantly share code, notes, and snippets.

@pcg92
Created May 18, 2017 18:48
Show Gist options
  • Save pcg92/3695b8346a4c25d2f42964a5f22ab1bc to your computer and use it in GitHub Desktop.
Save pcg92/3695b8346a4c25d2f42964a5f22ab1bc to your computer and use it in GitHub Desktop.
3 3 * * * mongodump --out /var/backups/mongobackups/`date +"\%m-\%d-\%y"`;python /home/user/gcloud/gdcp upload -p folderId /var/backups/mongobackups/`date +"\%m-\%d-\%y"`;
3 1 * * * find /var/backups/mongobackups/ -mtime +7 -exec rm -rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment