Skip to content

Instantly share code, notes, and snippets.

@johndavid400
Created April 10, 2014 03:45
Show Gist options
  • Save johndavid400/10340969 to your computer and use it in GitHub Desktop.
Save johndavid400/10340969 to your computer and use it in GitHub Desktop.
cron job - rsync remote, every night at 11pm
* 23 * * * rsync -av --delete -e 'ssh -p22' /home/user/source_directory user@hostname:~/home/user/remote_directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment