rsync Cheatsheet

Part of Linux

CommandDescriptionCommand ExampleOptions Expanded
rsync -rvP * user@remote-host:/mnt/dirSync directory with remote host directory
rsync -rvP --inplace * user@remote-host:/mnt/dir
-r - Recursive -v - Verbose -P - Progress Bar
rsync –progress -avz -e “ssh -i /home/user/privateKey” remoteUser@remoteTarget:/home/remoteUser /mnt/local/destinationUses a private Key to authenticate with a remote server (SSH Keyless)
rsync --progress -avz -e "ssh -i /home/user/privateKey" remoteUser@remoteTarget:/home/remoteUser /mnt/local/destination