This article basically introduces all: http://www.2cto.com/os/201308/238733.html
Some simple memo:
1. Apt-get can be installed under Ubuntu;
2. configuration file/etc/rsync.conf Default does not exist, need to create manually;
3. You can start rsync through the daemon xinetd and configure it in/etc/default/rsync;
4. The server configures the login name and password in/etc/rsync.passwd, not necessarily this file, you can configure each shared module password file in/etc/rsync.conf;
5. The client can also configure the password in the/ETC/RSYNC.PASSWD, do not have to have this file , synchronization with the parameter--password-file= specify the password file;
6. Common Synchronous Instruction format:
Rsync-arv [email protected]:: Shared module Name
This way will prompt the password from the terminal, the parameter r is a recursive directory, V is the output prompt information, A is the archive mode;
rsync-arv --password-file=/etc/rsync.passwd [email protected]:: Shared module Name
This method does not manually enter the password from the terminal.