Rsync examples
Rsync (Remote Sync) is a 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, perform data backups and mirroring between two machines.
Basic syntax
rsync options source destination
Sync files / directory to a remote server
rsync -avz /localdir/ root@remoteserver.tld:/remotedir/
Sync files / directory from a remote server
rsync -avzh root@remoteserver.tld:/remote/dir /local/dir
Source: www.tecmint.com
Recent Comments