The Command Format of rsync can be:
1. Rsync [Option]... SRC [SRC]... [user @] HOST: dest
2. Rsync [Option]... [user @] HOST: SRC dest
3. Rsync [Option]... SRC [SRC]... dest
4. Rsync [Option]... [user @] HOST: SRC [DEST]
5. Rsync [Option]... SRC [SRC]... [user @] HOST: dest
6. Rsync [Option]... rsync: // [user @] host [: Port]/src [DEST]
Rsync has six different working modes:
1. Copy the local file. This mode is enabled when the SRC and des paths do not contain a single colon ":" separator.
2. Use a remote shellProgram(Such as RSH and SSH) to copy contents of local machines to remote machines. This mode is enabled when the DST path address contains a single colon ":" separator.
3. Use a remote shell program (such as RSH and SSH) to copy the contents of the remote machine to the local machine. This mode is enabled when the SRC address path contains a single colon ":" separator.
4. Copy files from the remote rsync server to the local machine. This mode is enabled when the SRC path information contains the ":" separator.
5. Copy files from the local machine to the remote rsync server. This mode is enabled when the DST path information contains the ":" separator.
6. List of remote machine files. This is similar to rsync transmission, but you only need to omit the local machine information in the command.