Skip to content

Instantly share code, notes, and snippets.

@petri
Created October 26, 2017 11:58
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 petri/f7f7ca9ba166ee2fa75931c74c630c52 to your computer and use it in GitHub Desktop.
Save petri/f7f7ca9ba166ee2fa75931c74c630c52 to your computer and use it in GitHub Desktop.
scp copy cron job
sshpass -f "/etc/default/backups/remotepasswd" scp -r /var/backups/mysql/weekly/* remotebackup@myserver.com:/var/backups/remotebackup/weekly/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment