how Rsync works (from the web)
1) Copy Local files;
This mode of operation is enabled when the SRC and DES path information does not contain the colon ":" delimiter:
[Email protected]/]# rsync-avsh/home/coremail//cmbak/
2) Use a remote shell program (such as rsh,ssh) to copy the contents of the local machine to the remote machine, when DST path address includes colon ":" The mode is started when the delimiter is separated;
[Email protected]/]# rsync-avsh/home/coremail/192.168.11.12:/home/coremail/
3) Use a remote shell program (such as rsh,ssh) to copy the contents of the remote machine to the local machine, SRC The address path includes a colon ":" The mode is started when the delimiter is separated;
[Email protected]/]# rsync-avsh 192.168.11.11:/home/coremail//home/coremail/
4) Copy files from the remote rsync Server to the local machine. This mode is started when the SRC path information contains the "::" delimiter.
such as:rsync-av [email protected]::www/databack
5) copy files from the local machine to the remote rsync server. This mode is started when the DST path information contains the "::" delimiter.
such as:rsync-av/databack [email protected]::www
6) The list of files for the remote machine is listed. This is similar to the rsync transfer, but only if the local machine information is omitted from the command.
such as:rsync-v rsync://192.168.11.11/data
How Rsync works