Linux simple File Replication

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.