Platform:Centos release 6.3 (final)
Rsync version:Rsync-3.0.9-2.el6.rfx.x86_64.rpm
Rsync server:TS-DEV (17w..1.135)
Rsync client:TS-CLIENT (172.16.1.136)
Iii. Installing rsync on the server
3.1. Check whether rsync has been installed
# Rpm-Qa | grep
before using rsync for data synchronization.
Ii. System Environment
System Platform:CentOS release 6.3 (Final)
Rsync version:Rsync-3.0.9-2.el6.rfx.x86_64.rpm
Rsync server:TS-DEV (17w..1.135)
Rsync client:TS-CLIENT (172.16.1.136)
Iii. Installing rsync on the server
3.1. Chec
rsync for data synchronization.
Ii. System Environment
System Platform: CentOS release 6.3 (Final)
Rsync version: rsync-3.0.9-2.el6.rfx.x86_64.rpm
Rsync server: TS-DEV (172.16.1.135)TS-CLIENT (172.16.1.136)Iii. Installing rsync on the server3.1. Check whether
generate A backup of file A on Beta. Each instruction here is either a proof that file B has a data block and does not need to be re-transmitted, or a data block, this data block certainly does not match any data block of file B.
Command:
The Command Format of rsync can be as follows:
Rsync [OPTION]... SRC DEST
Brief introduction
For the choice of Linux as an application platform for small and medium-sized enterprises or Web sites, often face how to achieve remote Data backup or Web site mirror image of the problem, although there are commercial backup and mirror products to choose from, but these products are often too expensive prices. So how to use free software to efficiently implement remote backup and Web site mirror image is a topic worthy of discussion.
The easiest way to make remote data backu
/rsync server_args =- -daemon log_on_failure + + USERID }
Above, the main is to open rsync this daemon, once the rsync client to connect, XINETD will refer it to RSYNCD (port 873). Then the service xinetd restart to make the above setting effective.
rsync Servers and firewalls
Linux Firewall is used iptables, s
open rsync this daemon, once the rsync client to connect, XINETD will refer it to RSYNCD (port 873). Then the service xinetd restart to make the above setting effective.
rsync Servers and firewalls
Linux Firewall is used iptables, so we at least on the server side to let you define the Rsync server port through, the c
installed, run the rpm-e command to uninstall it.
3.2. Download the RPM package
# Wget http://pkgs.repoforge.org/rsync/rsync-3.0.9-2.el6.rfx.x86_64.rpm
3.3. Install rsync
# Rpm-ivh rsync-3.0.9-2.el6.rfx.x86_64.rpm
4. Configure the rsync
. Timeout is measured in seconds. 0 indicates that no timeout is defined. This is also the default value. An ideal number for anonymous rsync servers is 600.
Refuse options
You can use this option to define a list of command parameters that cannot be used by customers for this module. The full name of the command must be used. However, when a
1. Using Ssh+rsyncYou only need to open the SSH service on the server side and start the rsync service in xinetd to useA. Incremental synchronizationrsync-av/src-dir/. [email protected]:/dest-dir/.B. Mirroring synchronizationRsync-av--delete/src-dir/. [email protected]:/dest-dir/.Features: Simple configuration, no need to configure rsyncd.conf profile, but requires user authentication during synchronizationNote: You can create an auto-sync encryption
1.RSYNC: Remote sync, support local replication, or synchronize with other SSH and RSYNC hosts.Rsync remote synchronization and CP, SCP function basically consistent, the other two is to copy the source files, if there is new data added, using CP, SCP to the source file all the content is copied, and Rsync is on the basis of the source files only update the newly
and retain the original attributes of the file;
-P: retain the File Permission;
-T: The timestamp of the file to be retained;
-L: Reserved Symbolic Links
-G: reserved group
-O: retain the owner
-D: Keep the device file.
-E ssh: Use SSH for transmission;
-Z: Compressed and transmitted;
-- Progress: display progress bar
-- Stats: shows how to perform compression and transmission.
Note: In the rsync command
Tags: res rsync specifies create List start service technology RTP UIDI. Introduction of RSYNC ToolsRsync is a data-mirroring Backup tool under Unix-like systems, and--remote sync can be seen from the name of the software. Rsync is a file synchronization and data Transfer tool under the Linux system that uses the "rsync
-2.el6.rfx.x86_64.rpmrsync Server:Ts-dev (172.16.1.135)rsync Client: Ts-client (172.16.1.136)Third, server-side installation rsync service3.1. Check if rsync is installed# Rpm-qa|grep RsyncIf it is already installed, uninstall it using the RPM-E command.3.2. Download RPM Package# wget http://pkgs.repoforge.org/
Rsync learns to record rsync server troubleshooting ideas 1. check whether the rsync service configuration file path is correct, the correct default path is/etc/rsyncd. conf2, and check hostallow in the configuration file. Hostdeny: whether the ip address segment allowed by the client is the ip address segment allowed by the client. 3. view the configuration...
Synchronization
Rsync-parameter username @ sync Server IP: Module name in the square brackets in rsyncd. conf) Local Storage path for the content is as follows:
Rsync-vzrtopg-delete -- progress -- exclude "*. log" lansgg@192.168.182.130: lansggtest/root/backup -- password-file =/etc/rsyncd. pass
The command is interpreted as follows:-V indicates that verbose dis
32nd-foundation of rsync advanced synchronization tool, 32nd-rsync
Directory:
1. rsync Introduction2. How rsync works3. Use the rsync command. parameter description4. install and configure the
-2.el6.rfx.x86_64.rpmrsync Server:Ts-dev (172.16.1.135)rsync Client: Ts-client (172.16.1.136)Third, server-side installation rsync service3.1. Check if rsync is installed# Rpm-qa|grep RsyncIf it is already installed, uninstall it using the RPM-E command.3.2. Download RPM Package# wget http://pkgs.repoforge.org/
access to file a, and beta has access to file B. and assume that the network bandwidth between the host Alpha and beta is very small. Then the rsync algorithm will be done with the following five steps:
1.β splits file B into a set of data blocks that do not overlap with a fixed size of S bytes. The last piece may be smaller than S.
2.β performs two checks on each segmented block: One is a 32-bit scrolling weak checksum and the other is a 128-bit M
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.