Demand:The host has hundreds of backup files to Rsync to the remote host, we will cut the large file for dozens of small files for multi-threaded transmission.Here is a demo using 14 1G files:[[Emailprotected]test]#pwd/root/test[[emailprotected]test]#ll Total dosage 13631540-rw-r--r--. 1rootroot10737418246 Month 1118:29 Test10.data-rw-r--r--. 1rootroot1073741824
First, the experimental environment
Host Name
Network card IP
Default Gateway
Use
Nfs-server
10.0.0.11
10.0.0.254
Rsync Server Side
web-client01
10.0.0.12
10.0.0.254
Rsync Customer Service Side
web-client02
10.0.0.13
10.0.0.254
Rsync Customer S
rsync+inotify Synchronizing backup MYSQL data Rsync has the advantages of high security, fast backup, support of incremental backup, and so on, which can solve the requirement of low real-time data backup. , but
First, rsync basic configuration and introduction1. What is rsync?rsync (rsync-a Fast, Versatile (general), remote (and local) file-copying tool An open source, fast, versatile tool that enables full and incremental simultaneous local or remote data backup is available on m
Lab Environment:Backup server:192.168.160.101Node1 server:192.168.160.245Experimental purpose: Implement NODE1 scheduled incremental backups to backup serverAdd two domain name resolution via local Hosts file (two all to do) synchronize data via domain name more intuitive!Backup server:Ping test:Node1 Server:Ping test:Install Rsync: (both server and client are in
Tags: ACK path deployment Disabled related configuration HTTP VIM als GREThis article describes the way rsync takes a daemon approach to data transfer backup, hoping to provide some help for learning about Rsync's children's shoes.First, the environment1, prepare two servers, one for the server side, one for the client side2. Logic diagramIi. rsync server-side de
.txt34Test.txtSent bytes received 451 bytes 1282.00 Bytes/secTotal size was 0 Speedup is 0.00Method Two: Do not specify the user on the rsync server sideModify the configuration file rsyncd.conf on the rsync server to remove the configuration entries for the authentication account (auth user and Secrets file):# sed-i ' S/auth users/#auth users/;s/secrets file/#secrets file/'/etc/rsyncd.confThe above command
Assume that there are two linux systems A as the server and B as the backup machine. You need to install rsync software on Ah AB to run the rsync daemon on system, system B regularly backs up data specified by system A through the crontab daemon to implement data backup.
Server Configuration1. Run the command to check
Rsync is a foreign synchronization tool, which can be synchronized between platforms. Next I will introduce you to rsync in detail how to synchronize backup server files, for more information, see.
Rsync is a fast incremental file transfer tool. It can be used for internal backup
are separated by commas in English, do not restrict IP filling * Uth users = benet #允许连接的用户名secrets file = Etc/rsyncd.secrets #存放用户名密码的认证文件路径Under C:\Program FILES\ICW directory, create a new/etc/rsyncd.secrets file with Notepad Open, enter your username and password benet:123Ii. rsync Client Configuration 1, review the selinux mechanism, turn off Selinux[[email protected] ~]# getenforceDisabled2, turn on the wall TCP 873 port for later server use [[
In addition, rsync + inotify enables Real-time Data Backup
Advantages and disadvantages of rsync
Compared with traditional cp and tar backup methods, rsync has the advantages of high security, fast backup, and support for Incremen
is 52 speedup is 0.18
5. implement automatic data synchronization and manually write a small script. [Root @ localhost ~] template defined on the server after the colon # Vim rsync. Sh #! /Bin/bash/usr/bin/rsync-avz -- password-file =/etc/rsyncd. Secrets benet@192.168.1.1: Benet/OPT add automated backup [root @ localhost ~] # Chmod + x/root/
Reference: http://www.thegeekstuff.com/2010/09/rsync-command-examples/
Note: In all the examples below, there is actually no space between-and-. please delete the space when using it.
Rsync is a remote data synchronization tool that allows you to quickly synchronize files between multiple hosts over a LAN or the Internet. Rsy
Due to the company's recent business requirements to build a set of services specific requirements such as:650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/80/14/wKiom1c2mXDAecrxAAEM4w1pCJ0525.png "title=" nb% Qz7d%%zfqv[{i) 5p6b (g.png "alt=" Wkiom1c2mxdaecrxaaem4w1pcj0525.png "/>1. Basic Backup Requirementsknown 3 server host names are a (WEB01),B (Backup) ,C (nfs01), respectivelyRequirements :
installation. You need to open it in the/etc/default/rsync file. This file is a Debian-specific setting that is used to set whether rsync runs in service mode and configures service ports [can be changed, default is 873], and IP addresses. Only the server side (222.222.222.222) on the line, the client does not have to open.
#vi/etc/default/rsync
Will be the o
Rsync is a data image backup tool in Linux and UNIX systems. Its features are as follows:1. images can be used to save the entire directory tree and file system.2. It is easy to maintain the permissions, time, and soft links of the original file.3. installation without special permissions.4. optimized process, high file transmission efficiency.5. You can use rcp, ssh, and other methods to transmit files. Of
Case00 per night. Package backup system configuration files, file program directories, and access logs on Web server A and push to Server B for backup retention via the rsync command (backup ideas can be packaged locally by date and then pushed to B), the Web server is packaged for 7 days, and the
/USR/LOCAL/BIN/RSYNC-VZRTOPG--delete--progress--password-file=/etc/server.pass $src [email protected] $host 3::$ Dst3echo "${files} was rsynced" >>/tmp/rsynclog 2>1DonePut this script in the background to run and add to the self-boot fileSh/root/rsync.sh echo "/root/rsync.sh " >>/etc/rc.localThe relevant parameters in the script are as follows--TIMEFMT the output format for the specified time--format Specify the details of the change fileSometimes thi
is the same as above manual synchronization--delete means that if the server side deletes this file, then the client will also delete the file accordingly, maintain the true consistency, delete the local directory of redundant files--Exclude "logs/" means that the files in the/web1/logs directory are not backed up.--exclude "conf/ssl.*/" means that the files in the/web1/conf/ssl.*/directory are not backed up.If needed can be placed in the Crontab scheduled task in the interval of the synchronou
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.