Rsync

限制傳檔的網路頻寬
--bwlimit=30000

30000 = 30000 KB/ps = 30 MB/ps

本機內不同個資料夾做複製或同步
rsync -av --delete --exclude='path1/to/exclude' --exclude='path2/to/exclude' source destination
遠端複製大檔案需要續傳
rsync --partial --progress --rsh=ssh <local_file> user@host:<remote_file>
複製 Linux 整個系統
mount /dev/sdb1 /mnt
rsync -aAXv / --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /mnt
How does rsync work

https://michael.stapelberg.ch/posts/2022-07-02-rsync-how-does-it-work/ 

Other similar solutions



Revision #9
Created 17 July 2020 18:58:06 by Admin
Updated 4 August 2022 01:37:33 by Admin