https://linux.die.net/man/1/rsync
Lear Linux TV - How to Use the rsync Command to Transfer Files
.
rsync -avz ./src /dest |
-v verbose, -z compress -a == -rlptgoD
|
rsync -rv user@192.168.0.111:/home/user_name/scripts . | download from remote server to current folder, -r recursive,-v verbose, |
rsync --dry-run -avz ./src /dest | dry run |
rsync -rv user@192.168.0.111:/home/user_name/scripts /home/john/ | download from remote server to current folder, -r recursive,-v verbose, |
rsync -r --delete ./src /dest | sync recursively folders, and deletes from destination files which are not in source folder |