rsync $rsync_opts --exclude=".git" --exclude="*.db" --exclude="runtime/" --exclude="config/" --files-from=$script_dir/git_log.txt $git_basedir $script_dir/checkout_dir >/dev/null 2>&1
上述命令排除目录 runtime/ 和config/下的文件,但不会生效,想要生效,使用下面命令:
rsync $rsync_opts --exclude=".git" --exclude="*.db" --exclude="runtime/*" --exclude="config/*" --files-from=$script_dir/git_log.txt $git_basedir $script_dir/checkout_dir >/dev/null 2>&1
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!