The file replication system can use either a push model or a pull model. The following are common commands for copying files:
Push files:
Rdist:
Rdist-P/usr/bin/ssh-F distfile
The contents of the control file distfile are as follows:
La:/home/xueying/TT1-> 10.1.8.177 install/home/xueying/TT1;
(Note: The default rdist action will delete existing files on the target host, but there is no corresponding file on the source host !)
To enable rdist to work between multiple machines, the sshd on the recipient's host must trust the host on which the file is being distributed. To do this, you can generate a plain text key for the master machine and save it on each receiver host ~ A copy of the public part in the root/. Ssh/authorized_keys file. Reference: Here.
Rsync:
Rsync-gopt-e ssh/home/xueying/TT1 10.1.8.177:/home/xueying/TT2
Pull file:
Wget:
Wget http://fanqiang.chinaunix.net/app/rsync/2001-09-08/2729.shtml-P/home/xueying
(The URL can be FTP or HTTP)
Ncftp:
Ftp://ftp.rpmfind.net/linux/conectiva/samba/6.0/samba-clients-2.2.0-2cl.i386.rpm ncftpget
Ncftpput ftp.rpmfind.net/linuxboy/debiandocs debiantouch
Linux shared system files can also be usedNIs and LDAP. I have the opportunity to study it.