srakati.blogg.se

Rsync file synchronization
Rsync file synchronization







rsync file synchronization

P display synchronization progress and process r recursively transfer directories and subdirectories a copy various types of files (equivalent to -tropgDl) Daemon mode Daemon transmission, no system user is used for transmission (high security) Remote mode Remote channel transmission, data transmission via ssh channel (similar to scp command) Local mode Local transmission, data transmission inside the host (similar to the cp command)

rsync file synchronization

It is suitable for application scenarios such as centralized backup or offsite backup. Rsync is an open source backup tool that can synchronize between different hosts to achieve full and incremental backups. Simply put, rsync only updates the difference files. If they are the same, they do nothing, and if there are differences, they are updated directly. In rsync, when the files exist on the two hosts, it is compared that the two files are the same. The reason is that the scp is a copy: if the mas2 file does not exist, it is newly created, if it exists, it is overwritten, if it is on mas2 and the Dashboard host is not, it is not changed. When sync and scp do not exist in the folder, the execution time is not much different, but the difference is great when the folder exists. Technical investigation: There are two ways to synchronize files between Linux: rsync and scp.

Rsync file synchronization update#

Story background: Our company is doing new retail, and needs to synchronize the update of files for each machine released, so I did a little research here









Rsync file synchronization