rsync 同步目录,一定是目录后面到具体文件

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/nu...

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


  • 发表于 2019-08-19 19:36
  • 阅读 ( 51 )

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
shitian
shitian

662 篇文章

作家榜 »

  1. shitian 662 文章
  2. 石天 437 文章
  3. 每天惠23 33 文章
  4. 小A 29 文章