rsync

Rsync (Remote Sync) is the most commonly used command for copying and synchronizing files and directories remotely as well as locally in Linux/Unix systems. With the help of rsync command, you can copy and synchronize your data remotely and locally across directories, across disks, and networks, and perform data backups and mirroring between two Linux machines.

-v :

verbose

-r :

copies data recursively (but don’t preserve timestamps and permission while transferring data

-a :

archive mode, archive mode allows copying files recursively and it also preserves symbolic links, file   permissions, user & group ownerships and timestamps

-z :

compress file data (use if you want to reduce bandwidth usage when moving large files)

-h :

human-readable, output numbers in a human-readable format

$ rsync options source destination



$ rsync -avz [email protected]:/home/skywalker/Pictures/ /home/bob/test/


$ rsync -avz /home/bob/test/ [email protected]:/home/skywalker/Pictures/