Rsync is a data-mirroring backup tool for Linux systems, and--remote sync is visible from the name of the software. Rsync supports most Unix-like systems, which are well tested on Linux, Solaris, and BSD. The latest version of Rsync can be obtained from http://rsync.samba.org/rsync
Rsync is a very powerful tool, and its commands have many feature options, and we'll analyze all of its options below. The command format for Rsync can be the following six: rsync [OPTION] ... SRC DEST rsync [OPTION] ... SRC [User@]host:dest rsync [OPTION] ... [user@] HOST:S
I. Introduction
Rsync is a common backup tool, which is currently maintained by rsync.samba.org.
Rsync uses the so-called "rsync
Algorithm ", Provides a very fast file transfer method to synchronize the files between the local and remote hosts. It is mainly used to transfer the changes of the two files, instead of tra
1.rsync Introduction"Rsync is a data-mirroring backup tool for Linux systems. Use the Quick Incremental Backup tool Remote Sync can be synchronized remotely, support local replication, or synchronize with other SSH, Rsync hosts2.rsyncfeatures and features of1. can make
Tags: two times error remote path Oca/etc/images City ExampleEight weeks two sessions (January 30)10.28 Rsync Tools Introduction10.29/10.30 rsync Common Options10.31 rsync sync via sshI. Introduction of RSYNC ToolsLinux system has a lot of data backup tools, commonly used is
/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. INTRODUCTION
Rsync's common backup tool, which is currently maintained by Rsync.samba.org.
Rsync uses the so-called "rsync algorithm" to provide a very fast file transfer method, so that the local and remote two of the host file synchronization between, it is mainly the transmission of the two files, rather than the entire transmission every time, so the speed
Article Title: linux Rsync synchronization backup storage configuration tutorial. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Master server: 192.168.0.220 (CentOS 4.4)
Slave server: 192.168.0.248 (CentOS 5)
============================ 1> install
situations.In this example, I added the archive switch (-a), which is actually equivalent to using several rsync switches at the same time. It includes a recursive and duplicate symbolic link switch, a retention group and a master attribute switch, in short, to make rsync suitable for archival copies. Note that the-a does not retain hard links, and you should also add a hard-link switch (-h) if you want.An
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
Commands for backing up the MySQL database
Copy Code code as follows:
Mysqldump-hhostname-uusername-ppassword databasename > Backupfile.sql
Backing up the MySQL database for a deleted table format
Backing up the MySQL database is a format with a deleted table that allows the backup to overwrite the existing database without having to manually delete the original database.
Copy Code code as follows:
Mysqldump-–ad
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
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-
): dest_file_path=os.path.join(data_1,dir_name) if not os.path.exists(dest_file_path): os.mkdir(dest_file_path) dir_path=os.path.join(data,dir_name) for (root,dirs,filename) in os.walk(dir_path): for files in filename: src_file_path=os.path.join(root,files) time_chuo=os.path.getmtime(src_file_path) time=datetime.datetime.fromtimestamp(time_chuo) file_time=time.strftime(‘%Y%m%d‘) if file_time #备份压缩目录#!/usr/bin/env pythonim
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
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
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 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
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
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.