首先创建exclude目录放入xx.list排除文件。

[root@localhost tmp]# cat /exclude/a_exclude.list
a.txt
lai
————————————————————————
a.txt——文件

lai——目录
————————————————————————

rsync命令:

[root@localhost tmp]# rsync -avz --delete --force --password-file=/etc/rsync.password --exclude-from=/exclude/a_exclude.list root@192.168.247.135::wwww /tmp/

 

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-09-16
  • 2021-06-26
  • 2021-12-02
猜你喜欢
  • 2021-06-06
  • 2022-02-02
  • 2021-08-10
  • 2021-08-13
  • 2022-12-23
相关资源
相似解决方案