Rsync: a very practical file synchronization command, rsync is very practical
Sync is a file synchronization and data transmission tool in Linux. It can be used to synchronize files and release code.
1. install.
Yum install-y xinetdYum insatll-y rsync
2. ConfigurationEnable rsync
sent, this field records the file's verification code. the default log format is: "% o % h [% a] % m (% u) % f % l". In general, "% t [% p]" is added to the header of each line. In the source code, a perl script program named rsyncstats is released to collect statistics on log files in this format. Timeout overwrites the specified IP timeout value. This option ensures that the rsync server never waits for a crashed client. Timeout is measured in seco
timeout value. This option ensures that the rsync server never waits for a crashed client. Timeout is measured in seconds. 0 indicates that no timeout is specified. This is also the default value. An ideal number for anonymous rsync servers is 600. Refuse options allows you to define a list of command parameters that cannot be used by customers for this module.
rsync commandThe 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 "rsync algorithm" to synchronize files between local and remote two hosts, which transmits only the di
security methods:First, the installation process1. Download rsyncCurrently (September 2003) The latest rsync version is 2.5.6, from the official website of RYSNC to download one back:# wget http://ftp.samba.org/ftp/rsync/rsync-2.5.6.tar.gz2. Unzip# TAR-XZPVF Rsync-2.5.6.tar.gz3. Compiling the installation# CD
want to sync something to the destination, you can use the –exclude option to hide, rsync still attaches great importance to everyone's privacy, you can use the –exclude option many times to set a lot of "privacy."
If you want to hide too much privacy, set in the command-line option is more cumbersome, rsync is still very considerate, it provides the –exclude-f
For each of the above six command formats, Rsync has six different working modes:
1 Copy Local files. This mode of operation is initiated when both SRC and des path information do not contain a single colon ":" delimiter. such as: Rsync-a/data/backup
2 Use a remote shell program (such as rsh, SSH) to copy the contents of the local machine to the remote machine. T
Linux rsync Command detailed
[Date: 2011-04-28]
Source: Linux Community Author: Linux
1. What is rsyncRsync (remotesynchronize) is a remote data synchronization tool that allows you to quickly synchronize files between multiple hosts by Lan/wan. Rsync uses the so-called "rsync algorithm" to s
rsync Command
#rsync-av--progress/mnt/yidong2/full20100526.tar.gz/mnt/yidong1/
[above command] can realize the machine with a progress bar prompt copy, can realize different machine with progress bar prompt copy, can copy multiple files
SCP Command
#scp-V/mnt/yidong2/full201
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 the following six: rsync [OPTION] ... SRC DEST rsync [OPTION] ... SRC [User@]host:dest
Rsync command
# Rsync-Av -- Progress/mnt/yidong2/full20100526.tar.gz/mnt/yidong1/
[The above command] the local machine with a progress bar prompt copy can be achieved, different machines with a progress bar prompt copy, you can copy multiple files
SCP command
# SCP-V/mnt/y
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
The rsync command format can be in the following six ways: Rsync [OPTION] ... SRC DEST rsync [OPTION] ... SRC [[Emailprotected]]host:dest Rsync [OPTION] ... [[emailprotected]] HOST:SRC DEST rsync [OPTION] ... [[emailprotected
rsync commandThe rsync command is a remote data synchronization tool that enables fast synchronization of files between multiple hosts via Lam/wan.Rsync uses the so-called "rsync algorithm" to synchronize files between local and remote two hosts,This algorithm only passes the different parts of the two files, not the w
rsync command Detail (see Official document Http://rsync.samba.org/ftp/rsync/rsync.html for more details)[Email protected] epel]# rsync--Helprsync version3.0.6Protocol version -Copyright (C)1996- theby Andrew Tridgell, Wayne Davison, and others. Web site:http://rsync.samba.org/Capabilities: --bit files, --bit Inums, --
rsh and SSH.--RSYNC-PATH=PATH Specifies the path information for the rsync command located on the remote server.-c,--cvs-exclude uses the same method as CVs to automatically ignore files, which are used to exclude files that you do not want to transfer.--existing only updates those files that already exist in DST, without backing up those newly created files.--d
Rsync common errors and command detailed parameters Rsync common errors: Problem 1: www.2cto.com @ ERROR: chrootfailedrsyncerror: errorstartingclient-serverprotocol (code5) atmain. c (1522) [receiver3.0.3] cause :... rsync common errors and command detailed parameters
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
Rsync Common Errors and command detailed parameters Rsync Common Errors: Problem 1: www.2cto.com @ ERROR: chroot failedrsync error: error starting client-server protocol (code 5) at main. c (1522) [handler ER = 3.0.3] cause: the directory on the server does not exist or has no permission. Creating a directory and correcting permissions can solve the problem. Prob
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.