“rsync” is a utility for efficiently transferring and synchronizing files between a computer and an external hard drive and across networked computers by comparing the modification times and sizes of files. It is commonly found on Unix-like operating systems. ” Rsync is written in C as a single threaded application. Wikipedia
Rsync self describes as:
“a file transfer program capable of efficient remote updateUsage:
via a fast differencing algorithm.”
- rsync [OPTION]… SRC [SRC]… DEST
- rsync [OPTION]… SRC [SRC]… [USER@]HOST:DEST
- rsync [OPTION]… SRC [SRC]… [USER@]HOST::DEST
- rsync [OPTION]… SRC [SRC]… rsync://[USER@]HOST[:PORT]/DEST
- rsync [OPTION]… [USER@]HOST:SRC [DEST]
- rsync [OPTION]… [USER@]HOST::SRC [DEST]
- rsync [OPTION]… rsync://[USER@]HOST[:PORT]/SRC [DEST]
The ‘:’ usages connect via remote shell, The ‘::’ and ‘rsync://’ usages connect to an rsync daemon, and require SRC or DEST to start with a module name. In our case we are going to use the remote shell
- rsync [OPTION]… SRC [SRC]… [USER@]HOST:DEST
rsync -azP username@ip_or_hostname:/src/path/ /dest/path
rsync -azP /src/path username@ip_or_hostname:/dest/path/
rsync -avz /path/to/file.zip root@domain.com:/var/apps/
rsync -avz root@domain.com:/var/apps/file.zip /foler/where/fileWillBeSaved/