Skip to content

Instantly share code, notes, and snippets.

@lxneng
Created March 9, 2010 07:32
Show Gist options
  • Select an option

  • Save lxneng/326349 to your computer and use it in GitHub Desktop.

Select an option

Save lxneng/326349 to your computer and use it in GitHub Desktop.
#push
rsync -avz -e ssh /some/small/directory/ remote_user@remotehost.com:/backup/destination/directory/
#pull
rsync -avz -e ssh remote_user@remotehost.com:/backup/destination/directory/ /some/small/directory/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment