/rsync-avz -- progressRsync@192.168.3.191: backup/Www
# Crontab-e # (files can be synchronized every three minutes at a scheduled time)*/3
* *** Rsync-avz -- progress
Rsync@192.168.3.191: backup
/Www
The following command is complete:
# Vi/etc/rsyncd. pasAdd PasswordRsyncofpassNote that the password file on the client
listening port 2. set rsync on the slave to 2.1 to install rsync. check that the above 2.2 does not require a configuration file. run the command directly. in order not to enter a password, create a password file, and make sure the permission is 600 echo "helloworld">/root/rsync. pass. slave 2.3
the file's original permissions-
T,--times to maintain the original time of the file
-G,--group to maintain the original user group of the file
-O,--owner means to maintain the original owner
-D of the file,--devices represents the block device file information
Client: 192.168.198.131 Backup Source: 192.168.198.132Execute rsync command on client to implement downlink synchronization
Frequently asked Questions 3.1.1 Rsync server Troubleshooting IdeasTo see if the Rsync service profile path is correct, the correct default path is:/etc/rsyncd.confCheck the configuration file for host Allow,host deny, whether the allowed IP segment is an IP network segment that allows client access.View the path in the configuration file for the existence and correct permissions (normally the owner and gro
Value
Exclude
Specify multiple files or directories separated by spaces (relative paths) and add them to the exclude list. This is equivalent to using –exclude in the client command to specify the pattern.
Empty
Exclude from
Specifies a file name that contains the exclude rule definition from which the server reads the Exclude list definition.
Empty
Include
Specify multiple files or d
the words installed:# yum-y Install rsync
To perform an asynchronous synchronization operation:
/usr/bin/rsync-avz--progress rsync@192.168.3.191::backup /www
# crontab-e # (You can sync files every three minutes at timed time)
*/3
* * * * Rsync-avz--progress
After the rsync server configuration is over, the next step is to issue an rsync command on the client to enable the server-side files to be backed up to the client. Rsync is a very powerful tool, and its commands have many feature options, and we'll analyze all of its options below.The
synchronization
The client defaults as if it had been installed in rsync, without the words installed:
# yum-y Install rsync
To perform an asynchronous synchronization operation:
/usr/bin/rsync-avz--progress rsync@192.168.3.191::backup/www
# crontab-e # (You can sync files every three minutes at timed time)
*/3
Rsync + SSH Incremental backup file in FreeBSD system
There are two machines. One is called a server and the other is called a backup machine. How can we copy the server data to the backup machine on a daily or regular basis? The powerful functions of rsync will be used here.
During each transmission, rsync checks the remote file list and transfers only updated f
;
2.2 rsync access method to the server;
For example, I have a problem with the FC-5-i386-DVD.iso downloaded through wget, I want to use rsync to solve the problem; So first I need to find the rsync server with the FC-5-i386-DVD.iso; so I went to the Fedora.redhat.com download list to find, this file is found on rsync:
Background
Our company is using Inotify+rsync to do real-time synchronization to solve the problem of distributed cluster file consistency. But when the Web files more and more (millions number of small files, such as html,jpg), synchronization is more and more slow, simply do not real-time, according to the online tuning methods have tried, the problem is not resolved. After my careful research, and finally the slow core of the study to understand,
install rsync, go to the http://rsync.samba.org/download source code compilation, or use Yum-y install rsync for installation.
Rsync command used by the rsync Client
Syntax format
Pull file: rsync [option...] [[email protected
Directory Chapter 1 rsync service configuration process ... 21.1 system Optimization ... 21.2 viewing operating system information and rsync services ... 21.3 Edit rsync service /etc/rsyncd.conf configuration file ... 2 Chapter 2 rsync service setup details ... 32.1 Create rsyn
Always use rsync over SSH
Since Rsync does not provide the No. Transferring data it is recommended that to use rsync over SSH. This allows a secure remote connection. Now let us-some examples of rsync.
rsync Command common optio
polling of cron tasks. Learn how to integrate inotify into your application and discover a group of command line tools that can be used to further automate system governance.7. Install Inotify-toolsA. wget http://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gzB .tar-zxf inotify-tools-3.14.tar.gzC. cd inotify-tools-3.14D ../configure -- prefix =/usr/local/inotifyE. makeF. make install8. Write shell scripts (
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 rsync
-time data backup, for example, to back up file server data to remote server regularly, and to mirror the local disk periodically.But as the scale of the system continues to expand, the shortcomings of rsync are gradually exposed. First, when Rsync does the data synchronization, it needs to scan all the files for comparison and then carry out the differential transmission. If the file is large, the sweep fi
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.