Discover rsync between windows and linux, include the articles, news, trends, analysis and practical advice about rsync between windows and linux on alibabacloud.com
: qihang01 original content copyright, reproduced please indicate the source and the original link
Second, install Sersync tools, real-time trigger rsync to synchronize
1. See if the server kernel supports inotify
Ll/proc/sys/fs/inotify #列出文件目录, the following contents show that the server kernel supports inotify
-rw-r--r--1 Root 0 Mar 7 02:17 max_queued_events
-rw-r--r--1 Root 0 Mar 7 02:17 max_user_instances
-rw-r--r--1 Root 0 Mar 7 02:17 max_u
Description1. Rsync Service EndSystem: CentOS 5.5IP Address: 192.168.21.160Data storage directory:/data/osyunwei2, Cwrsync ClientSystem: Windows Server 2003IP Address: 192.168.21.130Synchronized Directories: D:\osyunweiTo achieve the purpose:Cwrsync client automatically synchronizes data from/data/osyunwei directory in rsync server to D:\osyunwei directory every
Unix/linux? An rsync command equivalent to SCP (remote backup, but rsync can achieve incremental backup), CP, RM three commands? The difference between the CENTOS5 series and the CENTOS6 series is that the 5 series is the advanced comparison, and then in sync, the 6 series is synchronized while comparing the differencesFeatures of the 1.2
gradually exposed a lot of shortcomings, first, rsync synchronization data, need to scan all files after the comparison, for differential transmission. If the number of files reaches millions or even tens of thousands of levels, scanning all the files will be very time consuming. And what is changing is often a small part of it, which is a very inefficient way. Secondly, rsync cannot monitor and synchroniz
Linux operation and Maintenance Phase III (14) rsyncFirst, related concepts:Rsync(remote Synchronize,rsync.samba.org): Long-distance data synchronization tool, fast synchronization of files between multiple hosts via the network, and rsync can also be used Synchronization of data in different directories on the local hard disk, using its own algorithm (rsync algo
In linux, the rsync server usually uses code management, data backup, and multiple servers on the same machine. If the hard disk breaks down, it is almost unable to go back to the day,Even if many backups exist, most of them are local backups. Therefore, remote backup is required. rsync is preferred. For free, the following articles are also queried and written a
, then rsync will not synchronize data.
So, ask a question: "Because in the Linux world, folders are files, and if such files (folders) are only different, and the timestamp and file size are the same, will rsync find out?" ”
Experiment you can do it yourself, the conclusion is here to tell you:
For folders, rsync w
When files on one server are updated, other servers also need to be updated, and when they are updated
It should be updated only on new or modified files, otherwise it will cause network bandwidth and waste of time. Rsync is able to have
Excellent software that keeps files and directories consistent.
Rsync,remote Synchronize
As implies know it is a remote synchronization function of the software, it synchro
Servers often maintain a consistent set of files or directories, such as large software download sites, which typically use multiple servers to provide download services. When the file on a server is updated, other servers need to be updated, and should be updated only for new or modified files, or it will cause network bandwidth and time wasted. Rsync is an excellent software that can effectively keep files and directories consistent.Rsync,remote Syn
873.The rsync client is the server that initiates the rsync connection and installs rsync.After the Rsync client initiates the connection, the Rsync server checks that the Rsync client submits the user name and password built into the r
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.
Server Installation: Run cwrsync_server_2.0.10_instal
Windows also has a similar to the UNIX under the Rsync software, recently I tried the Cwrsync software, the configuration and use of the method introduced, it is really easier to use it.
Sync rsync Server software download Cwrsync_server_2.0.10_installer.zip
Sync rsync Client software download Cwrsync_client_2.0.10
, scanning all the files will be very time consuming. And what is changing is often a small part of it, which is a very inefficient way. Second, rsync cannot monitor and synchronize data in real time, although it can trigger synchronization through the way of the Linux daemon, but there must be a time difference between the two triggering actions, which results in inconsistent service and client data and th
started, and then see if the/var/run/rsync.pid file exists, the simplest way is to kill has started the service, Then start the service again or let the script join the System Start service level and then Shutdown-r now serverError Seven:Rsync:read error:connection Reset by Peer (104)Rsync Error:error in Rsync protocol data Stream (code) at IO.C (604) [sender=2.6.9]Description: No data exists in the origin
protected]192.168.21.127::home_ Www.osyunwei.com--password-file=/etc/passwd.txtRSYNC-AVH--port=873--progress--delete/home/www.osyunwei.com/[email protected]192.168.21.128::home_ Www.osyunwei.com--password-file=/etc/passwd.txtAfter the completion of the operation, respectively on the two target server 192.168.21.127,192.168.21.128 view, in the /home/www.osyunwei.com directory has Ceshi folder, indicating that the data synchronization success. Second, the installation of Inotify-tools tools, real
Synchronization of mail server data using rsync under WindowsBackground environmentFor the system administrator, the usual focus should be on maintaining the normal operation of the system, to provide services, often involved in a data backup problem, in my understanding of the situation, 80% of the system administrators are not too concerned about the security of their own servers, but often the technology of the backup image is quite interested in H
,--compress compress the backed-up files during transmission--exclude=pattern Specify to exclude file modes that do not need to be transferred--include=pattern specifies file modes that need to be transferred without exclusion--exclude-from=file exclude files in the specified schema in file--include-from=file does not exclude files that specify pattern matching--version Print version Information--address binding to a specific address--config=file specify a different configuration file, do not us
changed, triggering 10 rsync full time synchronization (a nightmare), it's better to write a dead loop of rsync total synchronization.#有很多人会说 log Output There is clearly only a sync record of the difference file. In fact, this is the function of rsync, he will only output a difference need to sync the file information. Do not believe you to take this line of
SQL Server compressed log
You can make jb51.ldf files very small, make it easy to back up databases, and so on, and execute them in SQL Server Query Analyzer.
Copy Code code as follows:
DUMP TRANSACTION [jb51] with no_log
BACKUP LOG [jb51] with no_log
DBCC shrinkdatabase ([jb51])
Server reboot If you are using the Rsync server, in order not to allow Rsync servers to
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.