man rsync
-n, --dry-run show what would have been transferred
它只會秀出清單,不會實際把 src 的資料同步到 dst
我建立了 1 2 目錄,及檔案 a b c,如下
# ls 1 2 1: a b c 2: c
結果
# rsync -av --dry-run 1 2 sending incremental file list 1/ 1/a 1/b 1/c sent 72 bytes received 25 bytes 194.00 bytes/sec total size is 0 speedup is 0.00 (DRY RUN)
那如果要有圖形介面的,可以試用 meld
留言