create the backup folder in the VPS home directory.
☆☆☆ II, rsync incremental backup ☆☆☆
Rsync incremental backup, requires 2 VPS, let them do data synchronization between. For example, our site in VPS A, then a is the server side, with another VPS B t
Xtrabackup+rsync backing up the database and synchronizing to the remote backup machineSimple architecture:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/54/wKiom1V5N5yzcxrsAAErWN2NyIE784.jpg "title=" FA ( R87X$_VX) {%ckh7klhd.png "alt=" Wkiom1v5n5yzcxrsaaerwn2nyie784.jpg "/>Simple description:To back up the intermediate three servers above the database data to the
Linux Rsync data Image and backup steps 1: install rsync to download the latest rsync package, the latest package in http://rsync.samba.org/rsync Find it. You can use the rpm Package for installation. I have applied the source code here. For some reason, I prefer to install
First, the advantages and disadvantages of rsync
Compared with the traditional CP and tar backup methods, Rsync has the advantages of high security, fast backup, support incremental backup, etc., through rsync can solve the real-
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
/rsyncd.conf #创建配置文件, add the following code
Log file =/var/log/rsyncd.log #日志文件位置, which automatically generates this file when you start rsync, without having to create it in advance
Pidfile =/var/run/rsyncd.pid #pid文件的存放位置
Lock file =/var/run/rsync.lock #支持max connections parameter
Secrets file =/etc/rsync.pass #用户认证配置文件, which saves the user name and password, which is later created
MOTD file =/etc/rsyncd. MOTD #
I did not use, save the reference later
Reprint Source: Http://outofmemory.cn/wr/?u=http%3A%2F%2Fsmilejay.com%2F2012%2F02%2Frsync_remote%2F
Two days ago, I checked the department's test data and file backup situation, see the crontab has an rsync script, I look carefully, manual execution is actually not working properly, mainly because rsync there can not be au
password)
#客户端备份服务器上指定模块中的数据
[root@client ~] #rsync-vzrtopg–progress–delete–password-file=/etc/rsync.pas postfix@192.168.100.1::p ostfix/home/ mail/#备份rsync服务器上postfix中模块指定文件夹 and delete content that is not on the local server
#-v,–verbose Verbose mode output
#-z,–compress compression of backed-up files on transfer
#-r,–recursive in recursive mode for subdirectories
#-t,–times Keep file time information
#
CentOS Remote Backup Using rsync
This article provides a quick way to back up the most common things in a typical Web host scenario: website files and database data. We will set up a complete daily backup of the folder of a website and copy the data to a remote server (this can also work on another VPS ). We will also set up an
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
Rsync Simple and quick configurationRsync enables full-scale and incremental local or remote data backup. One rsync is equivalent to SCP,CP,RM but better than each of them because rsync is such a useful piece of software that many Linux distributions are included.Of course, you can also go to the official RYSNC officia
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
.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
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
Rsync is very simple and convenient to use. If used properly, the operation security can be enhanced. In addition, it can also be used as a security detection tool, without the support of any other software, you can complete the Integrity audit of the file system.
Rsync Step 1: Create an rsync directory in d:, decompress all the stuff in the two compressed files
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
Rsync + inotify enables real-time server backup, rsyncinotify
Inotify:
Inotify is integrated into the kernel. inotify is used as a third-party software to monitor directory changes through the interfaces provided by the kernel.
The inotifywait command can monitor fine-grained real-time changes to files in the directory. The monitored command is
Inotifywait-mrq -- timefmt '% d/% m/% y % H: % m' -- format' %
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 :
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
/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
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.