$ rsync -av --delete source/ destination 上面命令中,--delete參數(shù)會(huì)使得destination成為source的一個(gè)鏡像。 四、排除文件 4.1、--exclude 參數(shù) 有時(shí),我們希望同步時(shí)排除某些文件或目錄,這時(shí)可以用--exclude參數(shù)指定排除模式。 $ rsync -av --exclude='*.txt' source/ destination ...
www.dbjr.com.cn/article/2159...htm 2025-6-12