Rsync configuration commands 1. What is Rsync-Rsync Configuration Parameter Details Rsync (remote synchronize) is a remote data synchronization tool that allows you to quickly synchronize files between multiple hosts through the LAN/WAN. Rsync uses the so-called "
First, what is rsync
Rsync,remote synchronize as implies to know it is a remote synchronization function of the software, it synchronized files at the same time, you can keep the original file permissions, time, soft and hard links and other additional information. Rsync provides a quick way to file synchronization between a client and a remote file server using
first, what is Rsync
Rsync,remote synchronize as implies to know it is a remote synchronization function of the software, it synchronized files at the same time, you can keep the original file permissions, time, soft and hard links and other additional information. Rsync provides a quick way to file synchronization between a client and a remote file server us
the entire directory tree and file system. · Incremental data synchronization is possible, and file transmission efficiency is high, so the synchronization time is very short. · Maintain the permissions, time, and other attributes of the original file. · Encrypted data transmission ensures data security. · You can use rcp, ssh, and other methods to transmit files. of course, you can also directly connect to the file through socket. Supports anonymous
client to back up the files on the server to the client. Rsync is a very powerful tool, and its commands have many special options. The following describes the options one by one. First, the rsync command format can be: rsync [OPTION]... SRC [SRC]... [USER @] HOST: DEST rsync [OPTION]... [USER @] HOST: src dest
-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
, 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
synchronization of specified files or directories is equivalent to the tar exclusion function of the packaging command.
③ Keep the permissions, time, hard links, owner, group, and other attributes of the original file or directory unchanged
④ Implement incremental synchronization and only synchronize the changed data, resulting in high transmission efficiency
⑤ You can use rcp, rsh, ssh, and other methods to transfer files.
⑥ File and data can be tra
[Rsync implementation of Web site backup, file synchronization, different system files synchronization, if it is windows, need Windows version Cwrsync]
First, what is rsync
Rsync,remote synchronize as implies to know it is a remote synchronization function of the software, it synchronized files at the same time, you can keep the original file permissions, time, s
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
multiple clients at the same time, or multiple Rsync servers can back up data of one client.
Rsync can be used with rsh, ssh, or even daemon mode. Rsync server opens a 873 service channel (port) and waits for the peer Rsync to connect. During connection, the
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
file system;
2. It is easy to maintain the permissions, time, and soft and hard links of the original file;
3. installation without special permissions;
4. optimized process, high file transmission efficiency;
5. You can use rcp, ssh, and other methods to transmit files. Of course, you can also use a direct socket connection;
6. Anonymous transmission is supported to facilitate website images.
When using rsync
, and soft and hard links of the original file;
3. installation without special permissions;
4. optimized process, high file transmission efficiency;
5. You can use RCP, ssh, and other methods to transmit files. Of course, you can also use a direct socket connection;
6. Anonymous transmission is supported to facilitate website images.
When using rsync for remote synchronization, two methods can be used: Rem
directory tree and file system;
2. It is easy to maintain the permissions, time, and soft and hard links of the original file;
3. installation without special permissions;
4. optimized process, high file transmission efficiency;
5. You can use rcp, ssh, and other methods to transmit files. Of course, you can also use a direct socket connection;
6. Anonymous transmission is supported to facilitate website images.
When using
. 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 recursive recursion-T means keeping the origin
/backup Directory (including hidden files)Rsync-av/home/10.1.1.218:/backup/-- synchronize the local/home directory content to the/backup Directory of remote 218. A remote password of 10.1.1.218 is required.Rsync-av 10.1.1.218:/backup // backup/-- synchronize the content in the remote 218/backup Directory to the local/backup directory. A remote password of 10.1.1.21 is required.Rsync-a/test/'-e ssh-p 2222' 1
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 permissions.
Optimized flow, high efficiency of file transfer.
You can use RCP, ssh, and so on to transfer files, of course, through a direct socket connection.
Support for anonymous transmission, to facilitate the use of Web site
Rsync is a tool used to replace rcp. Rsync uses the so-called "Rsync algorithm" to synchronize files between local and remote hosts. This algorithm only transfers different parts of two files, instead of sending the whole copy each time, the speed is quite fast. You can refer to How Rsync Works A Practical Overview to
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.