The rsync
command is a remote data synchronization tool that can quickly synchronize files between multiple hosts over the network. By default, SSH
is used for data transmission. Its biggest feature is that it will check the existing files of the sender and the receiver, and only transfer the changed part, so it is very fast.
Syntax format: rsync [parameter]
Common parameters:
Example
# 将本地目录source,同步到远程服务器rsync -av source/ username@remote_host:destination # 将远程的内容同步到本地rsync -av username@remote_host:source/ destination
This article is reprinted from https://xugaoxiang.com/2022/07/19/linux-cmds-87-rsync/
This site is for inclusion only, and the copyright belongs to the original author.