Rsync synchronizes code files between Windows LinuxI. EnvironmentWindows:Os:microsoft Windows Web Server SP1ip:192.168.88.197Linux:Os:centos Release 6.4 (Final)ip:192.168.88.238Two. Install server-side software and configure it under Windows1.cwRsyncServer (Installation proc
CentOS 6.6 rsync Server and Client configurationBasic information
system version
hostname
ip address
role
centos 6.6
backup
10.0.0.10
rsync server
centos 6.6
lamp01
10.0.0.8
Tags: important inux Write customer PWD system Info Certified SambaI. Introduction of RSYNCrsync (remote sync) is the next magical data mirroring backup software for UNIX and Unix-like platforms, unlike FTP or other file transfer services that require full backup, and rsync can make differential (incremental) backups based on data changes. This reduces data traffic and increases productivity. You can use it for local data or remote data replication, a
Rsync It was originally a file synchronization protocol under Linux, and as technology developed, it had other versions, such as Windows and AIX, and HPUX with versions to support. The advantage of this synchronization tool for Rsync is that the operation is done under the full command line, there is a detailed log file, but also can support a variety of differen
Simple one-way synchronization configuration (client-side sync file to server):Service side: Cwrsyncserver_4.1.0_installerClient: Cwrsync_4.1.0_installer: HTTP://PAN.BAIDU.COM/S/1O65QWJWBecause it is multiple server synchronization, tested, only install the service-side version to meet the requirements.File push scheme: A->b->c->a,b as a service side, c as the service side of B, a as the
characteristics of rsync
Can be mirrored to save the entire directory tree and file system.It is easy to maintain the original file permissions, time, soft and hard links and so on.can be installed without special permissions.Fast: Rsync replicates all content on the first synchronization, but only the modified files are transferred the next time. Rsync can com
Primary server: 192.168.5.13_ubuntuFrom server: 192.168.5.11_centos================== 1> is installed on both hosts separately rsync===================Ubuntu installation is as follows:
# Apt-get Install rsync
Compile and install: Download this free softwarersync.samba.org/or Samba.anu.edu.au/rsyncGo to t
end of a string.Example:C:\Documents and Settings\user>echo%date%2012-08-08 WednesdayC:\Documents and Settings\user>echo%date:~5,10%08-08 Week ThreeC:\Documents and Settings\user>echo%date:~5,4%08-0C:\Documents and Settings\user>echo%date:~5,5%08-08Cwrsync Command Explanation:Rsync.exe--delete-az "/cygdrive/d/adbackup/addata" [email protected]::adbackup--password-file=]/cygdrive/d/ Adbackup/command/cwrsync/pass.txt "--delete-az de-sync to keep both ends of the file consistent"/cygdrive/d/adback
Rsync is so convenient for file backups that I feel I have to install it on my own server. The rsync server here is a simple and rough configuration (directly on the code), for details do not do in-depth discussion, but it is certain that the server must be able to run up, f
Rsync configuration Environment
Software Platform: Windows2003
Software Version: cwrsync_2.0.10_installer cwrsync_server_2.0.10_installer
Hardware Platform: dell2950 cpu1.6g * 4 Memory: 4G hard drive: 1g * 6 RAID5
=== Installation ===
To install rsync in Windows, you must install the server and client.
Primary server: 192.168.5.13_ubuntuFrom server: 192.168.5.11_centos================== 1> is installed on both hosts separately rsync===================Ubuntu installation is as follows:
# Apt-get Install rsync
Compile and install: Download this free softwarersync.samba.org/or Samba.anu.edu.au/rsyncGo to t
Rsync OverviewRsync is an open source fast backup tool that can mirror and synchronize the entire directory tree across different hosts, support incremental backups, maintain links and permissions, and use optimized synchronization algorithms to compress money in transit, making it ideal for applications such as offsite backups, mirror servers, and more. The official website of Rsync is http://rsync.samba.o
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 is very fast.
1.rsync and SSH differential remote sync command
Copy Code code as follows:
Command format:
#rsync [option] Source path target path
which
[option]:
A: Use archive mode, equal to-rlptgod, that is, maintain the original file permissions
Z: Compress data on transfer
V: Display to the screen
E: Use a remote shell program (you can use rsh or SSH)
--delete: Exact save copy, source h
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' %
: Windows platform Web site file Synchronization Backup solution--cwrsyn), this is the open source world masterpiece, although things look simple, ugly, but solve the problem is so effective.We rely on rsync to solve the problem of remote love of SQL Server, easy to achieve a remote automated log shipping.Share the rsync
Common scenarios: I want to synchronize some php files under/myweb, but I don't want to copy some log files in/myweb/log/because these files are too large, backup is meaningless. Now, if you want to avoid adding-exclude directly to a path, such as-exclude "./log"-exclude './log/file'Note: the directory path is relative to the folder you are backing up.Exclude specified directories or files during rsync backupTo exclude the specif
DescriptionThis article implements Linux timed to www,msyql,svn directory rsync to win2003 designated directory.Win2003 install Cwrsync, as the server side of Rsync, running the Cwrsync daemon daemon, accept the files synchronized with Linux;Linux for CentOS, itself has rsync, on time
Install rsync server in CentOS 6.6
I. Introduction
Rsync is often used for code distribution or data backup at work. The configuration is not complex and only recorded. The installation environment is as follows:
1) CentOS6.6
2) rsync-3.0.6-12.el6.x86_64
3) Server IP: 192.16
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.