In linux, the rsync incremental synchronization method-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Run rpm-qa | grep rsync to check whether rsync has been install
: Preserve file Owner PropertiesP: Preserve file permission PropertiesG: Preserve the group attributes that the file belongs toA: Archive mode, main reserved file attributes, equivalent to-rlptgod--progress: Show progress information for data transfer--password-file=file: Specifies the password file, writes the password to the file, realizes the non-interactive data synchronization, this file name also needs to modify the permission to be 600--delete: Delete files that exist only in the target p
--password-file=/etc/rsync.password Content: Password2,/etc/rsync.password 6003. Execute push or pull with commandExclude:1. Firewalls and SELinux2, look at the log/var/log/rsyncd.log3, the entire deployment process to consider the overall troubleshooting.4, operating habits as a major event.Ways to Kill a process:1, [[email protected] oldboy]# Cat/var/run/rsyncd.pid4970[[email protected] oldboy]# kill ' Cat/var/run/rsyncd.pid '2, [[email protected] oldboy]# Pkill rsynchttp://oldboy.blog.51cto.c
The configuration of rsync under Linux for folder synchronizationhttp://blog.csdn.net/cymm_liu/article/details/31347531Objective: to [88]_a of the host /data/home/web sync to [27]_b of the host /data/home/qy CatalogueBHost asrsyncServer# Check if the system has rsync packages installed[Email protected] home]# Rpm-qa |greprsyncrsync-2.6.9if not, go to yum or apt-g
want to boot up, write rsync--daemon--config=/etc/rsyncd.conf to the/etc/rc.d/rc.local fileAnd then to another machine testRSYNC-AVL [email protected]::test/test1//tmp/#冒号后的test为模块名, followed by file path under pathModifying the rsyncd.conf configuration file is immediate and does not require a restart of the service.In the above synchronization process, can also be used in a secret-free way.Specifying a password fileEdit a password file on the clien
been configured!
======================================
Rsync client configuration:
Create a file on the client to save the rsync server user password, vim/etc/rsyncko. pass123 # Password defined in the server password fileSave and modify the file permission: chmod 600/etc/rsyncko. pass
--- Now The rsync client has been configured!
==============================
Tags: apply to the application to explain the win span Linu local preface processRsync is an open source, fast, versatile (CP,SCP,RM), excellent software tool that enables full and incremental simultaneous backup of local or remote data mirroring. Rsync is suitable for a variety of operating system platforms such as Unix/linux/windows. This article mainly explain
synchronization folder and permissions.5. Client View Server sync folder rsync--list-only rsync://172.16.0.16, Client Sync server folder Rsync-av--delete rsync://172.16.0.1:/share7, the client synchronizes access to the serverRsync-av--delete--password-file=/var/myscret.pass Rsync
local machine. This mode is started when the SRC address path contains a single colon ":" delimiter.such as: rsync-avz [email protected]:/home/user/src./src4) Copy files from the remote rsync server to the local machine. This mode is started when the SRC path information contains the "::" delimiter.such as: rsync-av [email Protected]::www/databack5) Copy files f
rsync (Remote sync) is a file sync and Transfer tool under the Unix/linux system. Rsync provides a quick way to synchronize files between a client and a remote file server via the rsync algorithm. Working mechanism: In a remote synchronization task, the client responsible for initiating the
[email protected]::test/test1//tmp/test8/--password-file=/etc/passWhere/etc/pass content is a password, permission to change to 600Second, Linux system log/var/log/messages/etc/logrotate.conf Log Cutting configuration fileRefer to https://my.oschina.net/u/2000675/blog/908189 DMESG command/VAR/LOG/DMESG LogLast command, called the file/var/log/wtmpLASTB command to view the user who failed the login, the corresponding file is/var/log/btmp/var/log/secur
Analysis of rsync synchronization speed using linux commands
Rsync is a data image backup tool in unix-like systems-remote sync. A Fast Incremental Backup Tool, Remote Sync, supports local replication or synchronization with other SSH and rsync hosts.
Its features are as follows:1) images can be used to save the entire
First, we assume that the server on which the site is located is a server and that the backup server is a B server. The way to install rsync is not to say, Linux directly yum/apt-get install rsync can be
1. Create a public key and key on Server A with the Ssh-key-gen command (for password-free login to B server)
SSH-KEYGEN-T RSA
2. Run the Ssh-copy-id command
(755)-- the owner has read, write, execute permissions, but the group users and other users only read, execute permissions. -rwx--x--x (711)-- the owner has read, write, execute permissions, but the group user and other users only execute permissions. -rw-rw-rw-(666)-- All users have file read and write permissions. This approach is undesirable. -rwxrwxrwx (777)-- All users have read, write, and execute permissions. More undesirable approach. Here are two general settings for the directory:drwx
-x (755)-- the owner has read, write, execute permissions, but the group users and other users only read, execute permissions. -rwx--x--x (711)-- the owner has read, write, execute permissions, but the group user and other users only execute permissions. -rw-rw-rw-(666)-- All users have file read and write permissions. This approach is undesirable. -rwxrwxrwx (777)-- All users have read, write, and execute permissions. More undesirable approach. Here are two general settings for the directory:dr
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.