Skip to content

Instantly share code, notes, and snippets.

@biske
Last active August 29, 2015 14:05
Show Gist options
  • Save biske/cb431954a8a1ea01a615 to your computer and use it in GitHub Desktop.
Save biske/cb431954a8a1ea01a615 to your computer and use it in GitHub Desktop.
rsync -avz remote_username@remote_ip_or_doman_name:/path/to/remote/file /path/to/local/folder
# Example to copy production.log from remote user's folder to local home folder:
rsync -avz [email protected]:~/production.log ~/
# Options:
# -a archive mode
# -v increase verbosity
# -z compress file data during the transfer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment