In the previous blog, I talked about using rsync to achieve data mirroring and backup, but to achieve real-time data backup, independent of rsync can not be achieved, this article describes how to achieve real-time data backup.
First, the advantages and disadvantages of
rsync Backup toolI. SCPSCP Backup tool is not available for incremental backups1. Installing SCP[email protected] ~]# Yum install-y openssh-clients2, Scp-r 192.168.21.98:/tmp/a/./a/Copy the A directory below/tmp/from the remote host to the current directory-R: Recursively copy3, [[email protected] cheng]# SCP 1.txt 192.168.21.98:/root/cheng/Copy the files in the
Scheduled backup data scheme1th. Backup Requirements there's one in the company. Web Server, the data inside is very important, but if the hard drive is broken, the data is lost, and now the leader asks you to make a periodic backup of the data on other machines. Requirements are as follows:every night xx Point the whole Web Server A The
Requirements: Content on a server, scheduled daily backup to remote disaster-tolerant server. To save space and improve transmission efficiency, use incremental backups.Expansion requirements: Two servers in real time one-way, bidirectional synchronization of all data in a directory.
Environment: Cent OS 5 (5.4 5.5 5.6 test pass), system with rsync.1. Install rsync
Linux rsync sync settings
Rsync is a data mirroring backup tool that keeps data synchronized between two servers, and the most frequently used scenario is backing up the data.The installation method is as follows:
Installation
Installing rsync under Ubuntu can be achieved by following these steps:
The c
Rsync+cront Building a data mirroring backup systemfor a more clear introduction rsync the use of server mode, here through an enterprise case, describes how to build a remote disaster recovery backup system. Case description an e-commerce enterprise has a portal site, The Web server operating system is Linux, website
Rsync is an efficient remote data backup tool. The port number of this service is 873,
Is a non-independent service under Liunx, managed by the xinetd super service, instead of listening to port 873.
Advantages:
1. rsync can use ssh and ssl remote control to connect to a remote host for backup, depending on the sshd se
Chapter III rsync enables data backup via remote SSHRemote shell access for data synchronous backupPull-synchronizes data on the remote server to the local server.Push-synchronizes data on the local server to the remote server.Syntax format : Pull Operation = = " rsync option User name @ backup source server IP addres
Rsync is a data image backup tool in Linux. It can be seen from the software name-remote sync. Rsync supports most Unix-like systems, including Linux, Solaris, and BSD. The latest version of rsync can be found at http://rsync.samba.org/rsync. Its features are as follows:1. i
First, rsync synchronous backup preparation work
We need to download 2 packages: rsync server-side profile (VPS data section)/Rsync Client Profile (VPS Backup host)
Second, configure the server-side VPS
We upload the server-side
By default, rsync is installed in ubuntu. You can run the rsync-h command to check whether the tool is installed. If not, run the following command:
$ Aptitude install rsync
Install.Rsyncremote synchronize) is a remote data synchronization tool that can be used to synchronize files between local and remote hosts using the "Rs
Tags: rsync+inotify-tools+ssh implement mysql-bin log file real-time backup1, Environment: two CentOS computer direct connection, its server A's IP address is 192.168.1.124, Server B's IP address is 192.168.1.121.2. Requirement Software Installation (SSH system is installed by default):Server A:Yum Install rsync Inotify-toolsServer B:Yum Install rsync3. Set up user (Bac
There is a Web server in a company, the data is very important, but if the hard disk is spent, the data will be lost, now the leader requires you to make the data on the other servers to do a periodic scheduled backup, the requirements are as follows:The backup Site Directory is packaged on Web server A every night at 00 o'clock and pushed to Server B by the rsync
Rsync+inotify configuration of automatic backup server1 Backing up the server ip:192.168.1.106Client ip:192.168.1.1072.#yum-y install rsync xinetd gcc gcc-c++Install both of these services, as well as the C + + compiler (if not in advance, to avoid the compiler when compiling binary files)3. Create a rsyncd.conf on the server side (192.168.1.106)/etc#service ipta
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--. 1rootroot10737418246 Month 1118:30 Test11.data-rw-r--r--. 1rootr
background:
0. Server data is very important and will be in trouble once disk corruption occurs. As a manager, it is necessary to synchronize the data in real time.
1. Rsync is a good and backup tool, let's take Ubuntu as an example to talk about its compounding.
2. If my server a IP is 10.141.247.12, the IP of my backup client B is 10.141.247.13
server-side com
The Rsync service is an efficient remote data backup tool with port number 873,is a non-independent service under the Liunx. Managed by XINETD Super service, instead of listening 873port.Strengths:1. Rsync is able to use SSH and SSL remote control to connect to a remote host for backup. Dependent sshd Service2, enables
Centos7.x Rsync + sersync for real-time incremental data synchronization backup tutorial, rsyncsersync
I. Overview
1. sersync is developed based on Inotify and is similar to Inotify-tools.
2. sersync can record changes (including adding, deleting, and modifying) in the monitored directory to the name of a specific file or directory. When rsync is used, only th
directory PermissionsSetfacl-m user:nobody:rwx/var/www/html/Start rsyncRsync--daemonCentos7 startSystemctl Start RSYNCDClient TestingBackup from remote server to nativeRsync-avz [Email protected]::backup/backup/rsync/Uploading to a remote server from this computerrsync-avz/backup/
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.