Skip to content

Instantly share code, notes, and snippets.

@ebinnion
Last active December 12, 2015 07:58
Show Gist options
  • Save ebinnion/4740019 to your computer and use it in GitHub Desktop.
Save ebinnion/4740019 to your computer and use it in GitHub Desktop.
Ubuntu Rsync Command. This command was used to backup computers in the MSU CS server room. Command will login to remote server, create a tar of the directory, then put the tar in the specified backup director (/backup in this case).
sudo rsync -arv -e "ssh" --rsync-path="sudo rsync" user@host:/home /backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment