Document directory
Always use rsync over ssh
Rsync command common options
Task: Copy file from a local computer to a remote server
Task: Copy file from a remote server to a local computer
Task: Synchronize a local directory with a remote directory
Task: Synchronize a remote directory with a local directory
Task: Synchronize a local directory with a remot
file owner -P indicates the parameter for retaining the original file. -G indicates the group to which the original file belongs. -A archive Mode -P indicates the option function that replaces-partial and-progress. -E create an encrypted connection through SSH. -- Partial: prevents rsync from deleting the copied part during transmission interruption (if the transmission is interrupted during file copy, rsy
information. for example, $ rsync-vI main. c machineB:/home/userB main. c sent 81 bytes converted Ed 42 bytes 246.00 bytes/sectotal size is 11 speedup is 0.09 the more v you add, the more log information you get. $ Rsync-vvvvt abc. c machineB: /home/userB cmd = machine = machineB user = path =/home/userBcmd [0] = ssh cmd [1] = machineB cmd [2] =
already exist in DST, and the file time is later than the file you want to back up. (Do not overwrite the updated file)
-L,--links retention soft link knot
-L,--copy-links to treat soft links like regular files
--copy-unsafe-links only copies links that point beyond the src Path directory tree
--safe-links ignores links to the SRC path tree
-H,--hard-links keep hard links
-P,--perms keep file permissions
-O,--owner keep file owner information
-G,--group keep file group information
-D,-
/DATA/LNMP refers to the local backup directory
5.Rsync Common parameters:#rsync [option] Source path target pathWhere [option] is:A: Use archive mode, equal to-rlptgod, that is, maintain the original file permissionsZ: Compress data on transferV: Display to the screenE: Use a remote shell program (you can use rsh or SSH)–delete: Exact save copy, source host del
ensure true consistency. The following rsync_user@192.168.0.2: rsync_module_name1, after rsync_module_name1 is the module name, that is, in/etc/rsyncd. the custom name in conf. rsync_user is the user name that can be synchronized specified in the specified module. The last/www is the name of the local directory that is backed up. You can also use the-e ssh parameter to establish an encrypted connection. You can use-password-file =/password/path/file
Bring you into the rsync worldGuideRemote 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 on the local hard disk. There are three methods to use rsync. There are also six
filename2, and if the files in Filename2 are synchronized to filename1, modify the code to: $ RSYNC-ZVR filename2 filename1
2. Use Rsync–a to synchronize retention times by Mark $ rsync-azv filename1 filename2
Using the above command, the new synchronized file in Filename2 is the same as the time it was created in filename1.
It retains the same symbolic link, p
B. A is the client.1. What is rsync?Rsync and remote synchronize know that rsync is a software that implements remote synchronization. While Synchronizing files,You can retain additional information such as the permission, time, and soft/hard link of the original file. Rsync uses the "
source file, rsync cannot find them. This is the legendary "pitfall "! 4. When rsync is smart, the solution is to use the-I option. [-I option] we often use the-I option: $ rsync-I main. the c machineB:/home/userB1-I option will make rsync very honest, and it will initiate data synchronization from one file to another
The official site of Rsync is located in http://rsync.samba.orgRsync is a data mirroring Backup tool under Unix-like systems--remote sync. A fast incremental backup tool remote Sync, which supports local replication or synchronizes with other SSH and rsync hosts.
Rsync includes some of the following features:1. Ability
How to Use rsync client on windows, rsync Client1.1 obtain the rsync software on windows (cwRsync)
CwRsync is a package containing Rsync in the Windows Client GUI. You can use cwRsync to quickly back up and synchronize remote files.1.1.1 Official Website
Https://www.itefix.net/cwrsync
Download Method:
1. Click get on
size used by the--block-size=size test algorithm, is 700 bytes by default-E,--rsh=command specifies data synchronization using RSH and SSH--rsync-path=path Specify the path information for the rsync command on the remote server-C,--cvs-exclude uses the same method as CVs to automatically ignore files to exclude files that you do not want to transfer--existing on
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 algorithm) to transfer only two different parts o
This article System Centos6.0
Server: (Centos) 192.168.182.130
Client: (LV2) 192.168.182.129
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 tree and file system.
It is easy to maintain the original file permissions, time, soft and hard links and so on.
can be installed without special permi
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 working mechanism (translation), rsync working mechanism Translation
This article is an official rsync recommendation article on How Rsync Works translation. The main content is Rsync terminology and a simple version of rsync
Rsync random start script and rsync script
Server
1 #!/bin/sh 2 # chkconfig: 2345 21 60 3 # description: Saves and restores system entropy pool for \ 4 #create by xiaohu 5 #2014.06.02 6 #This script is the Rsync service script 7 . /etc/init.d/functions 8 case "$1" in 9 start)10 echo "rsync is starting"11
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.