RSYNC software introduction: rsync is a data image backup tool in unix-like systems. It can be seen from the software name-remote sync. Its features are as follows: images can be used to save the entire directory tree and file system. It is easy to maintain the permissions, time, and soft links of the original file.Installation without special permissions. Optimi
Rsync OverviewRsync is an open source fast backup tool that can mirror and synchronize the entire directory tree across different hosts, support incremental backups, maintain links and permissions, and use optimized synchronization algorithms to compress money in transit, making it ideal for applications such as offsite backups, mirror servers, and more. The official website of
Software Introduction:1.rsyncCompared with the traditional methods of CP and Tar Backup, rsync has the advantages of high security, fast backup, support of incremental backup, and so on, rsync canTo address the requirements of low-real-time data
. Provide the correct module name or modify it on the server to the module you want to solve the problem.
Question 1:Problems encountered on the client:Rsync-auzv -- progress -- password-file =/etc/rsync. pas root@192.168.133.128: backup/home/Rsync: cocould not open password file "/etc/rsync. pas": No such file or dire
1. Introduction of environment and related softwareOperating system: ubuntu12.04_x64Source Server (push): 192.168.18.10Target server (Backup): 192.168.18.20Rsync:Rsync is a data mirroring Backup tool under UNIX systems and is a fast incremental backup tool (remote sync) that supports local replication or synchronizes with other SSH (secure transfer) and
)[Home_21yunwei] # Custom namePath =/home/21 yunwei/# rsync server data directory pathComment = home_21yunwei # The module name is the same as the custom name of [home_www.osyunwei.com]Uid = root # set rsync operation permission to rootGid = root # set rsync operation permission to rootPort = 873 # default portUse chroot = no # The default value is true. Change i
Linux (Debian and Fedora) using rsync synchronization tool to automatically synchronize Remote Server File installation and configuration steps: # cdrsync-3.0.5 #. config
Linux (Debian and FEdUsing rsyNcThe synchronization tool automatically synchronizes the installation and configuration steps of remote server files:
I. Installation1. Debian/Ubuntu# Apt-get install rSync(Directly use the built-in download
Rsync Introduction
Rsync is a file synchronization and data transmission tool in Linux and UNIX systems. It uses the "rsync" algorithm to synchronize files between a client and a remote file server, unlike the limitations of cp and wget commands, it supports Incremental backup, so the file transmission efficiency is hi
/backup.pass #文件格式如下backup:123456chmod 400/etc/backup.pass
5. Start ServiceStart rsync for the first time
The code is as follows
Copy Code
Rsync–daemon–config=/etc/rsyncd.conf
If prompted
The code is as follows
Copy Code
Failed to create PID File/var/run/rsyncd.pid:file exists
Tags: rsync introduction rsync common options rsync six modesI. Introduction of RsyncThe rsync command is a remote data synchronization tool that enables fast synchronization of files between multiple hosts via Lan/wan. Rsync uses the so-called "
compressionU means to update onlyTOPG maintain the original attributes of the file, such as the owner, time parameters--progress refers to the display--delete means that if this file is deleted by the server side, then the client also deletes the file accordingly, maintaining true consistencyRoot is User name@192.168.100.150 for server IP:: The following RSYNCD is the Certified module name/home/test directory name for backup to local--password-file=/
After the rsync server configuration is over, the next step is to issue an rsync command on the client to enable the server-side files to be backed up to the client. Rsync is a very powerful tool, and its commands have many feature options, and we'll analyze all of its options below.
The command format for rsync can be
rsync command ParametersAfter the rsync server configuration is complete, the next step is to issue the rsync command on the client side to back up the server's files to the client.Rsync is a very powerful tool, and its commands have a lot of feature options, and we have an analysis of its options below.The command format for
How to use rsync under LinuxSpit Groove After summing up the SCP yesterday, I saw that there was finally a talk about Rsync, a cloud: Curiosity killed the cat. With the attitude of learning to find out the rsync, and then carried out some simple study. Here are a few common commands. The scp:12 of the previous article is a file for the SCP transfer of chestnuts.
RSYNC software introduction: rsync is a data image backup tool in unix-like systems. It can be seen from the software name-remote sync.
I. Use rsync to start rsyncserverTwo Methods for RSYNC server startup1. Start the rsync server
Rsync is a data-mirroring Backup tool under Unix-like systems, which can be seen from the name of the software--remote syncit has the following characteristics:The entire directory tree and file system can be saved in a mirror.It is easy to keep the original file permissions, time, soft and hard links and so on.Install without special permissions.Fast: When you synchronize for the first time,
-auzv -- Progress -- password-file =/etc/rsync. Pas root@192.168.133.128: backup/home/Rsync: cocould not open Password File "/etc/rsync. Pas": no such file or directory (2)Password:@ Error: AUTH failed on module backupRsync error: Error starting client-server protocol (Code 5) at main. C (1506) [runner ER = 3.0.7]This
backup is required-p equivalent to--partial--progress Show Backup process-Z,--compress compress the backed-up files during transmission--exclude=pattern specify to exclude file modes that do not need to be transferred--include=pattern specifies file modes that need to be transferred without exclusion--exclude-from=file exclude files in the specified schema in file--include-from=file does not exclude files
: Synchronization between local directories, using CP, RM and other commands to complete the differential file backup;DEFAULT.RSYNCSSH: Sync to remote host directory, rsync SSH mode, need to use key to authenticateSource directory to synchronize with, using absolute path.Target defines the destination address.An example of three modes is given later.Init This is an optimization option, when init = False, on
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.