RSync for file backup Synchronization
1. rsync Introduction
Rsync is an application software in Unix. It can synchronously update files and directories of two computers and use differential encoding to reduce data transmission. An important feature in rsync that is not seen in most similar programs or protocols is that the image only needs to be sent once for each target. Rsync can copy/display directory at
One, the rsync feature can be mirrored to save the entire directory tree and file system. It is easy to keep the original file permissions, time, soft and hard links and so on. Install without special permissions. Fast: When you synchronize for the first time, rsync copies the entire content, but only the modified files are transferred the next time. Rsync can compress and decompress in the process of trans
Configure the file synchronization server as a synchronization service for other servers
1. Install xinetd first.
Yum-y install xinetd
2. Rsync is generally installed by default.
3. Run Vim/etc/xinetd. conf to change disable = yes to disable = No.
3. Vim/etc/rsyncd. conf (note that this file is not available,
real-time monitoring, synchronization of data, although it could be triggered by the Linux daemon process synchronization, but the two trigger action must have a time difference, which leads to server and client data may be inconsistent, not in the application of the failure to fully recover data. Based on the above reasons, the rsync+inotify combination appears!2, INotifyInotify is a powerful, fine-graine
the above content, set the listening port to 52326.
In this way, on the control panel --> management tools --> service, locate the service and start it, such:
In this case, we can create a folder named sync on the F disk of the client (10.0.2.20, at the same time, create two folders named "config" and "aspx" respectively below to synchronize the folders on the server.
Then create a batch file named dnt_rsync.bat with the following content:
Code hig
You can perform the following operations on Win7 and later systems:1. Right-click the "synchronization assistant" icon and click "open file location 」2. Open the "synchronization assistant" installation directory and find the "Exception" folder.3. Open the "Exception" folder, which contains txt documents recorded by da
--> management tools --> service, locate the service and start it, such:
In this case, we can create a folder named sync on the F disk of the client (10.0.2.20, at the same time, create two folders named "config" and "aspx" respectively below to synchronize the folders on the server.
Then create a batch file named dnt_rsync.bat with the following content:Rsync-avrsync: // 10.0.2.136: 52326/t_config/cygdrive/f/sync/config
Rsync-avrsync: // 10.0.2.13
Publishing Server that requires active synchronization.) I call it rsyncClient.End
This script can also be written separately. Note that/etc/server. passAnd/etc/server2.passTwo rsyncserversStored in rysncClientI tried to put the two passwords in the same configuration file, but I couldn't find them. So I wrote them separately.
[Root @ localhost ~] # Mkdir/web/wwwroot/-p
[Root @ localhost ~] # Chmod 755/we
···· According to the rectification file, the NFS file synchronization service to delete, resulting in the server between the file synchronization problem. Although it did not cause serious consequences, but the impact is not good.···· In the future must not be bold, RM must
Requirements:
In a file management activity, click an item to download the object;
Click All items to download the files corresponding to all items one by one.
When downloading an object, the page displays the download progress continuously.
The files on the server and local files use the same directory. The synchronization client at the root of 360 is similar.
Note:
1. A
matters1 hint that the password file can not be read, you need to manually enter the password, may be the password file permissions are not 600, or the format is wrong, or the wrong path.2 prompts to create a new directory or file transfer failure, may be synchronized directory does not have permissions, it is best to sync the directory permissions to modify to
The user configuration file synchronization service always displays "starting" and cannot be stopped. You can stop this service as follows:Run the following command in SharePoint power shell:Get-spserviceinstanceObtain all service instances.Stop-spserviceinstance (service instance guid)Stop the service instance. The following parameter is the guid of the service instance, which has been obtained in the prev
[Hash] how to configure FTP connection in WebstormPhpstorm, and perform file comparison, upload and download, synchronization, and other operations? in addition to opening the localhost file, Phpstorm can also connect to FTP, in addition to normal data transfer tasks, you can also compare the similarities and differences between local files and server files. the
Rsync is a backup tool for data images in Unix-like systems. Generally, it comes with Linux systems. [Check whether shell> rpm-Qa | grep rsync]
Server: 192.168.1.2 synchronization Directory:/home/source
Client: 192.168.1.3 synchronization Directory:/home/receive
1. Server Configuration
Shell> VI/etc/rsyncd. conf # create the configuration file rsyncd. con
HCP anywhere: leading enterprises into the mobile office Era
HCP anywhere is the industry's first truly integrated, secure, and reliable enterprise-level file sharing and synchronization solution. Meet the needs of enterprise applications. HCP anywhere allows employees to access arbitrary data anytime and anywhere through any device. At the same time, it ensures the security, reliability, and supervision of
MySQL remote connection this has been practiced before, vaguely remember the damn space business sealed 3306 ....
I've been working on this all morning until now to get to the rsync.
Server 1: Sync source Server
Server 2: The synchronization server is the new server
First check that two servers have no rsync installed
The code is as follows
Copy Code
[Root@localhost. ssh]# Rpm-qa rsync# If no installation can yum insta
> Use rsync to synchronize data from the server. Here we only talk about one-way synchronization.
First install rsync
# Server ConfigurationThe server uses 'xinetd' to act as the 'rsync' daemon. If not, install> Xinetd listens to a specified port, fork the service program corresponding to the configured port, and then continues to listen.
#1. Configure the xinetd configuration file for rsync:
# Nano/etc/xi
1. Cwrsync Introduction
Cwrsync is an implementation version of Rsync on Windows, and rsync can transfer only modified files over the network by using file transfer technology for specific algorithms.Cwrsync is primarily used for remote file synchronization backups and synchronizations on Windows, which contains both Cygwin DLLs and the Cygwin version of Rsync.C
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.