Skip to content

Instantly share code, notes, and snippets.

@chris-piekarski
Created May 23, 2013 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-piekarski/5636253 to your computer and use it in GitHub Desktop.
Save chris-piekarski/5636253 to your computer and use it in GitHub Desktop.
Using SSH w/Cron
1 5 * * * /bin/bash -l -c -i "source $HOME/.keychain/chis-devpc-sh && /usr/bin/scp -vvv -F /home/chris/.ssh/config -i /home/chris/.ssh/id_rsa db:/var/apps/perch/shared/backups/\* /home/chris/ServerBackups/" > /home/chris/tmp/db_backup_copy_log.cron 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment