file in Filename2 is the same as the time created in Filename1,It retains the same symbolic link, permission, time stamp, user name, and group name.3. Synchronizing files from the local to the remote server$rsync-avz filename1 [email protected]:/home/ubuntu/filename2The above command synchronizes the local filename1 to the remote 192.168.0.1 host.Note: If the port of the remote host is not the default port 22, if it is Port 3000, the above command is
I. INTRODUCTION
Rsync's common backup tool, which is currently maintained by Rsync.samba.org.
Rsync uses the so-called "rsync algorithm" to provide a very fast file transfer method, so that the local and remote two of the host file synchronization between, it is mainly the transmission of the two files, rather than the entire transmission every time, so the speed is very fast.
First, RsyncRsync (remote synchronize), as the name implies, can know that this is a remote data synchronization tool, you can quickly sync files between multiple hosts via Lan/wan. Rsync uses the so-called "rsync algorithm" to synchronize files between local and remote two hosts, which transmits only the different portions of two files, rather than the entire transfer every time, so it is quite fast.
After the rsync server configuration is over, the next step is to issue an rsync command on the client to enable the server-side files to be backed up to the client. Rsync is a very powerful tool, and its commands have many feature options, and we'll analyze all of its options below.
The command format for rsync can b
Its synchronization practices in the window system
1. Introduction to remote data synchronization tool rsync
1.1 Software Overview
Rsync is a remote data synchronization tool that allows you to quickly synchronize files between multiple hosts through the LAN/WAN. Rsync is a tool used to replace RCP, which is currently maintained by rsync.samba.org.
when executing the rsync command. The command was successfully tested by myself. However, because my rsync didn't fail, I modified | to for testing. The principle is the same.I don't know if this is what LZ wants?Rsync Usage Details in linux
Rsync has its own data synchronization protocol. You do not need to use the
I've written it before. Timed backups via rsync: Windows2008 and Centos7.0 via rsync for Updates (backup), and now the need for real-time synchronous backups via rsync and INotify. The first step: Getting Ready for work 1. INotify Introduction
Inotify is a Linux feature that monitors file system operations such as read, write, and create. The Inotify is responsiv
About Rsync:Rsync is a remote data synchronization tool that uses the so-called "Rsync algorithm" to synchronize files between local and remote two hosts, which transmits only the different portions of two files, rather than the entire transfer every time, so it is quite fast. The machine running Rsync server is also called Backup server, a rsync server can back
transmission,R is recursive,Topg is a parameter that maintains the original attributes of a file, such as the owner and time.U is only used to synchronize updated files to avoid repeated updates to non-updated files. Note the clock synchronization between the two machines.-Progress indicates the detailed progress,-Delete: if the server deletes the file, the client also deletes the file to ensure true consistency.The following rsync_user@192.168.0.2: rsync_module_name1, after rsync_module_name1
Rsync + inotify synchronize notes in real time, rsyncinotify
Copy files from the remote rsync server to the local machine. This mode is enabled when the SRC path information contains the ":" separator.
Copy files from the local machine to the remote rsync server. This mode is enabled when the DST path information contains the ":" separator.
The configuration file
The command format for rsync can be in the following six ways:rsync [OPTION] ... SRC DESTrsync [OPTION] ... SRC [User@]host:destrsync [OPTION] ... [user@] HOST:SRC DESTrsync [OPTION] ... [user@] HOST::SRC DESTrsync [OPTION] ... SRC [user@]host::D ESTrsync [OPTION] ... rsync://[user@]host[:P ort]/src [DEST]For each of the above six command formats, Rsync has six
/backup/backups
Note: This is not the usual way to do this, it will be better to set the script for completing all tasks, and then arrange the script, but it is concise for this article, we will use this form.
Incremental BackupBut if we have backup software on another server? We just want to synchronize data and keep other servers for backup. In addition, we want to retain the stamp of the document. Then we use rsync. In this example, we only want t
(1) Software Overview Rsync is a remote data synchronization tool that allows you to quickly synchronize files between multiple hosts through LANWAN. Rsync is a tool used to replace rcp, which is currently maintained by rsync.samba.org. Rsync uses the so-called "Rsync algorithm" to synchronize files between local and r
-file = rsync. passHere, rsync. pass only has the password 123456, the user name has been specified in the command line, and the rsync. pass File Permission is changed to 600.
3. export environment variable, password-free rsync
export RSYNC_PASSWORD=${pass}After setting the environment variable RSYNC_PASSWORD, you ca
Tags: so delete false manual this share yum sock necRsync's file synchronization implementationI. Introduction of RSYNCRsync (remote synchronize) is a long-distance data synchronization tool, and a brief summary is a synchronization of the file directory data between hosts.it has the following characteristics:the entire directory tree and file system can be saved in a mirror. It is easy to keep the original file permissions, time, soft and hard links and so on. install without special permission
I found this problem twice and thought it was a server problem because a machine encountered this problem. For security purposes, I canceled the permission to write and modify files. You can solve the problem by modifying the permission of mcafee. In this case, check the directory permission first.
Rsync error: some files/attrs were not transferred (see previous errors)Cwrsync rsync error failed: Invalid a
InstallationYum Install rsyncRsync has six different modes of operation.rsync [OPTION] ... SRC DESTrsync [OPTION] ... SRC [[Email protected]]host:destrsync [OPTION] ... [[email protected]] HOST:SRC DESTrsync [OPTION] ... [[email protected]] HOST::SRC DESTrsync [OPTION] ... SRC [[Email protected]]host::D ESTrsync [OPTION] ...Rsync://[[email protected]]host[:P ort]/src [DEST]Copy the local file. This mode of operation is initiated when both the SRC and
Rsync is a data image backup tool in Linux and UNIX systems. Its features are as follows:1. images can be used to save the entire directory tree and file system.2. It is easy to maintain the permissions, time, and soft 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
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.