Skip to content

Instantly share code, notes, and snippets.

@stephenhardy
Created September 6, 2016 10:42
Show Gist options
  • Save stephenhardy/be8ea68751018f4c4197203fd484d8e4 to your computer and use it in GitHub Desktop.
Save stephenhardy/be8ea68751018f4c4197203fd484d8e4 to your computer and use it in GitHub Desktop.
Rsync to or from remote
To remote
-----------
rsync -azP file username@remote_host:/home/dir/file
From remote
-------------
rsync -azP username@remote_host:/home/dir/file file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment