rsync Cheatsheet
Part of Linux
Command | Description | Command Example | Options Expanded |
---|---|---|---|
rsync -rvP * user@remote-host:/mnt/dir | Sync 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/destination | Uses 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 |