rsync 排除指定目录有两种做法

来源:互联网 发布:snmp端口号 编辑:程序博客网 时间:2024/06/14 21:23

  rsync 排除指定目录有两种做法:

  一种是 --exclude "dir/"  一定要在目录后面加入 /

 一种是 --exclude-from=exfile;其中exfile 文件中写入目录名,一个目录一行,如:

cat exfile

dir/

dir1/

dir2/test/

exfile 一定要写全路径

原创粉丝点击