Skip to content

Instantly share code, notes, and snippets.

@ev3rywh3re
Created December 4, 2013 20:58
Show Gist options
  • Save ev3rywh3re/7795421 to your computer and use it in GitHub Desktop.
Save ev3rywh3re/7795421 to your computer and use it in GitHub Desktop.
# Rsync command to mirror, delete, with excludes over ssh on a weird port
rsync -avz --delete --exclude *backups --exclude ERROR_LOG* -e 'ssh -p 2222' [email protected]:/from-location/ [email protected]:~/tolocation/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment