How to Use rsync in Linux for data backup, linuxrsync
For various organizations and companies, data is the most important to them. Even for e-commerce, data is equally important. Rsync is a tool/software that backs up important data through the network. It is also a network protocol for synchronizing folders and files between systems through the network on Unix-l
LSYNCD on which server to start, this server is like when the server is synchronized, other servers if more files will be deleted, fewer files will be synchronized from this server.
Modifying the contents of the file will also be synchronized
Rsync can achieve synchronization/backup of files, install configuration step to Linux under rsync
There are many servers and databases in our production system, and daily backup is especially important. However, it is often the easiest way to ignore a disaster-free backup. However, when a disaster occurs, backup is the most direct and useful solution, although some data losses are inevitable.Rsync is a secure backup
message# Module definitions# Remember cygwin naming conventions: c: \ work becomes/cygwin/c/work#[Backup] # This module name can be named at willPath =/cygdrive/d/work # path of the file to be synchronized, representing the d: \ work DirectoryRead only = falseTransfer logging = yesList = noHosts allow = *Auth users = rsync # rsync users can synchronize files und
Description of related parameters in the mysql_back.sh script. The-c in the CT-c is the meaning of the command, that is, the-c is followed by the relevant commands, but these commands must
Description of related parameters in the mysql_back.sh script. The-c in the CT-c is the meaning of the command, that is, the-c is followed by the relevant commands, but these commands must
I. Environment Description (using
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
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 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
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
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
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
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
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/
Rsync makes it easier and faster to synchronize two machines, such as Laptops and Desktops. This provides an efficient algorithm and multiple options. In addition, if you do not like the command line operation, you can use several graphical tools to make rsync easier.If you are using both a laptop and a desktop computer, you may need to synchronize them in a time
4. Set the client cron job on the server 192.168.11.2. Self-action backup or mirroring per night
0 * * 1-5/root/.test.sh
Note: Automatically run/root/.test.sh for backup every nine o'clock in the evening from Monday to Friday
#more/root/.test.sh
#!/bin/sh
Date= ' Date +%w '
Rsync-tvzrp-e ssh--progress--delete test@192.168.11.7::test/shopu/test/$DATE--password
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.