modules that are defined when you define the directory to synchronize.
Use chroot = yes
Note: With chroot, the server daemon will be chroot to the directory in the file system before the file is transferred, and the advantage of this is that it may protect the system from being installed with vulnerabilities. The disadvantage is that you need superuser privileges. In addition, the symbolic link file will be excluded. In other words, you are on the rsync
script without the need to enter the authentication password interactively. Note that the permission attribute of this password file must be set to only root readable. The backup content is stored in the/backup/www/directory of the backup machine. [Root @ linuxaid/] #/usr/local/bin/rsync-vzrtopg -- delete -- exclude "logs/" -- exclude "conf/ssl. */"-- progress backup@202.99.11.120: www/backup/www/-- password-file =/etc/
Rsync and rsync + inotify
Rsync is a data image backup tool in Unix-like systems -- remotesync. A Fast Incremental Backup Tool, Remote Sync, supports local replication or synchronization with other SSH and rsync hosts. Rsync is ma
Samba directory;
# Distributed under the terms of the GNU general public License v2# Minimal configuration file for rsync daemon# to Rsync (1) and rsyncd.conf (5) man pages for help
# This are required by THE/ETC/INIT.D/RSYNCD scriptPID file =/var/run/rsyncd.pidPort = 873Address = 192.168.1.171#uid = Nobody#gid = NobodyUID = rootGID = root
Use chroot = yesRead Only = yes
#limit access to private LANsHosts
-remote sync. Its features are as follows:
Images can be used to save the entire directory tree and file system.It is easy to maintain the permissions, time, and soft links of the original file.Installation without special permissions.Optimized process, high file transmission efficiency.You can use rcp, ssh, and other methods to transmit files. Of course, you can also use a direct socket connection.Supports anonymous transmission for website images.So
Synchronization
Rsync-parameter username @ sync Server IP: Module name in the square brackets in rsyncd. conf) Local Storage path for the content is as follows:
Rsync-vzrtopg-delete -- progress -- exclude "*. log" lansgg@192.168.182.130: lansggtest/root/backup -- password-file =/etc/rsyncd. pass
The command is interpreted as follows:-V indicates that verbose dis
the data volume to be copied is large, the backup time will become long. The wget command backs up the file over the network, it does not support incremental backup. every time all the data needs to be transmitted over the network again, regardless of which files are updated, this command is more efficient. Today, we will introduce a practical tool, rsync, which allows you to easily implement local and remote data backup.
I. Introduction of RSYNCrsync (remote synchronize) is a data synchronization tool that allows you to quickly sync files between multiple hosts via Lan/wan, or use rsync to synchronize different directories on your local hard drive.Rsync is a tool for replacing RCP, which uses the so-called "rsync algorithm" to synchronize files between local and remote two hosts,
92.3.2 Test Command 92.4 rsync Multi-module Configuration 102.4.1 Editing a configuration file/etc/rsyncd.conf 102.4.2 Creating a directory and assigning permissions 112.4.3 Restarting the Rsync service 112.4.4 testing on the client 112.5 rsync Multi-User Configuration 112.5.1 Editing a configuration file/etc/rsyncd.conf 112.5.2 Creating a password file/etc/rsyn
Rsync architecture and rsync Architecture
1.1 rsync server configuration
1.1.1 view the server rsync version
1.1.2 after the rsync program is installed by default, the main configuration file of rsync is not automatically creat
Rsync usually use a lot of places, find a detailed version, have various configuration instructions as well as several examples posted on the memo and reference
Rsync is a data mirroring Backup tool under Unix-like systems, and--remote sync can be seen from the name of the software. Its characteristics are as follows:
Can be mirrored to save the entire directory
, which allows you to easily implement local and remote data backup. Rsync is a file synchronization and data transmission tool in linux. It uses rsync. To synchronize files between a client and a remote file server, you can use rsync to back up data on the same server from one partition to another, you can also back up the data notification network transmission
I. Introduction of RSYNCrsync (remote synchronize) is a data synchronization tool that allows you to quickly sync files between multiple hosts via Lan/wan, or use rsync to synchronize different directories on your local hard drive.Rsync is a tool for replacing RCP, which uses the so-called "rsync algorithm" to synchronize files between local and remote two hosts,
Rsync configuration, rsync configuration file
I. Introduction to rsync
Remote synchronize (Rsync) is a remote data synchronization tool that allows you to quickly synchronize files between multiple hosts through the LAN/WAN, or use Rsync to synchronize different directories
in the process of preparing each file:
pi@192.168.1.12 ' s password:
receiving incremental file list
myfile.gz
24.14M 100% 623.52kb/s 0:00:37 (xfr#1, to-chk=0/1)
sent bytes received 23.74M bytes 558.52K bytes/sec Total
size is 24.14m
Sync Delete File
The Rsync preset will only synchronize the source-side files to the destination (sync all new o
Tags: rsync introduction rsync common options rsync six modesI. Introduction of RsyncThe rsync command is a remote data synchronization tool that enables fast synchronization of files between multiple hosts via Lan/wan. Rsync uses the so-called "
Brief introductionFor small and medium-sized businesses or websites that choose Linux as an application platform, they often face problems with remote backup of data or mirror images of the site, although there are commercially available backup and mirror products to choose from, but the prices of these products are often too expensive. Therefore, how to use free software to efficiently realize remote backup and website mirror image becomes a topic worthy of discussion.The simplest way to make a
Objective:
Why should I use the Rsync+sersync framework?
1, Sersync is based on inotify development, similar to the Inotify-tools tool
2. Sersync can record the changes in the listening directory (including adding, deleting, modifying) a specific file or a directory name, and then use rsync synchronization, only the change of this file or the directory.
Ii. What is the difference between
/sectotal size is one speedup is 0.21_exit_cleanup (code=0, FILE=MAIN.C, line=1031): En Tered_exit_cleanup (code=0, FILE=MAIN.C, line=1031): About-to-call exit (0)[-Z option]This is a compression option, and as long as this option is used, rsync will compress and retransmit the data sent to the peer. It is recommended to use in the case of poor network environment.In general, the-Z compression algorithm will be the same as gzip.[-R Option]When we use
/rsync file, disable change to No# Service XINETD RestartYou can also use#/usr/bin/rsync--daemon--config=/etc/rsyncd.confTo prevent rsync from writing too many useless logs to/var/log/message (easily stuffed to miss important information) it is recommended to comment out/etc/xinetd.conf success# log_on_success = PID HOST DURATION EXITIf you are using a firewall,
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.