linux:rsync
这是本文档旧的修订版!
rsync
rsync is a fast, versatile, remote (and local) file-copying tool.
Usage:
rsync -azcuP /path/to/folderOrFile hostname:/path/to/remoteDir
options explain:
option | description |
---|---|
-a, –archive | archive mode; equals -rlptgoD (no -H,-A,-X) |
-z, –compress | compress file data during the transfer |
-c, –checksum | skip based on checksum, not mod-time & size |
-u, –update | skip files that are newer on the receiver |
-P | same as –partial –progress |
Another useful options:
option | description |
---|---|
–exclude=PATTERN | exclude files matching PATTERN |
–delete | delete extraneous files from destination dirs |
linux/rsync.1486101655.txt.gz · 最后更改: 2023/12/03 10:24 (外部编辑)