Sometimes all files need to be synchronized to the specified directory, including subdirectories.Confirm the file name to be synchronized before execution.# Rsync-avmn -- include = '*/' -- include = '*. pdf' -- exclude = '*'/SRC // DEST/The execution results of the following two commands are the same. The specified files under the SRC Directory (all PDF files, including subdirectories) are synchronized to the DEST directory, bu
This article by show according to Lin Feng to provide friendship sponsorship, starting in the mud row world. Just have a few days to start learning Linux file synchronization software rsync, when learning rsync, we can be divided into the following several steps: 1. What is rsync? 2. How rsync Works 3.
synchronization.
Ii. System Environment
System Platform:CentOS release 6.3 (Final)
Rsync version:Rsync-3.0.9-2.el6.rfx.x86_64.rpm
Rsync server:TS-DEV (17w..1.135)
Rsync client:TS-CLIENT (172.16.1.136)
Iii. Installing rsync on the server
3.1. Check whether rsync has been ins
Rsync is a data image backup tool in Linux. It can be seen from the software name-remotesync. Rsync supports most Unix-like systems, including Linux, Solaris, and BSD.
I. rsync
CommandIntroduction
Rsync is a command for Synchronizing files to a Linux system. It can synchroni
Set up rsync Data Synchronization backup and rsync Data Synchronization for Small and Medium-sized Clusters
Important NFS Problems
1. NFS client users write NFS.
1) Why do ordinary users need to write NFS.
2) Add all_squash to exports.What is Rsync?
Rsync is an open-source, fast, and versatile tool that supports full o
Set up rsync Data Synchronization backup and rsync Data Synchronization for Small and Medium-sized Clusters
Important NFS Problems
1. NFS client users write NFS.
1) Why do ordinary users need to write NFS.
2) Add all_squash to exports.What is Rsync?
Rsync is an open-source, fast, and versatile tool that supports full o
matching sources, so that the sender does not need to send parts that match these data sources ). To achieve this remote data matching, a block checksum code (block checksum) will be created for the basis file and sent to the sender immediately after the file index number (file id. If the "-- whole-file" option is specified, an empty block check code will be sent for the new file (that is, the file that the sender has but the file that the consumer does not. (Note: generator sends the block ver
drive rsync startupChkconfig -- level 2345 rsync on
The following error was found during script execution:/Bin/sh ^ M: bad interpreter: No file or directory Error analysis:Because the operating system is windows, the script I edited in windows may have invisible characters.The script file is in DOS format, that is, the end of each row is identified by \ n \ r, and its ASCII code is 0x0D, 0x0A. There are
:@ ERROR: Unknown module 'TEE _ nonexists'Rsync error: error starting client-server protocol (code 5) at main. c (1522) [runner ER = 3.0.3]
Cause:The specified module does not exist on the server. Provide the correct module name or modify it on the server to the module you want to solve the problem.
Question 1:Problems encountered on the client:Rsync-auzv -- progress -- password-file =/etc/rsync. pas root@192.168.133.128: backup/home/
execute can be either system commands or script files that you write yourself.
In each of these fields, you can also use the following special characters:
Asterisk (*): represents all possible values, such as the month field if it is an asterisk, the command action is executed monthly after the constraints of other fields are met.
Comma (,): You can specify a list range with a comma-separated value, for example, "1,2,5,7,8,9"
Mid-Bar (-): You can us
Linux O M and architecture-rsync and linux-rsync
1. rsync IntroductionRsync is a tool for Synchronous backup of full and incremental local or remote data images
Common rsync Command Parameters
Command parameter description-a (--
= NoUser = rootServer =/usr/bin/rsyncServer_args = -- daemonLog_on_failure + = userid}
Above, We need to enable the rsync daemon. Once an rsync client is connected, xinetd will forward it to rsyncd (Port 873 ). Then the service xinetd restart takes effect.
Rsync server and Firewall
Linux Firewall uses iptables, so we should at least let the defined
connected, xinetd will forward it to rsyncd (port 873 ). Then the service xinetd restart takes effect.
Rsync server and Firewall
Linux Firewall uses iptables, so we should at least let the defined rsync server port pass through on the server side, and the client should also pass through.
# Iptables-a input-p tcp-m state -- state NEW-m tcp -- dport 873-j ACCEPT# Iptables-L check if port 873 is enabled in th
[% a] % m (% u) % f % l". Generally, "% t [% p]" is added to the header of each line. In the source code, a perl script program named rsyncstats is released to collect statistics on log files in this format. Timeout overwrites the specified IP timeout value. This option ensures that the rsync server will not always wait for a crashed customer. Timeout is measured in seconds. 0 indicates that no timeout is defined. This is also the default value. An i
directory read-only. uid and gid are the users and user groups used for synchronization. Pid file and log file are the storage addresses of pid files and log files.
Test Is the synchronization directory, and path is the synchronization directory. Note that the variable is followed by a comment such as # XXX. If it is added, a chroot error is returned. In addition, hosts allow restricts the synchronized ip addresses. Multiple ip addresses are separated by spaces. Auth users and secrets files are
. Inotify is a powerful, granular, asynchronous file system event monitoring mechanism, from the Linux kernel to 2.6.13, joined the INotify support, through the inotify can monitor the file system Add, * *, modify, mobile and other subtle events, using this kernel interface, third-party software can monitor the file system under the various changes, and inotify-That's how tools are. A third-party software3. Server Performance1) rsync+Crontab will peri
. Create a directory, edit a password file# mkdir/etc/rsync# Vim/etc/rsync/password 123123 #格式是 "Password" # chmod 600/etc/rsync/password #修改密码文件的权限
Parameters of the Rsync synchronization command-V indicates verbose detailed display-Z means compression-R means r
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.