首页 > 其他 > 详细

RSYNC 同步完成后删除源文件

时间:2021-05-03 10:48:56      阅读:22      评论:0      收藏:0      [点我收藏+]

RSYNC 同步完成后删除源文件

Delete source after successful transfer using rsync
The syntax is:

rsync --remove-source-files -options /path/to/src/ /path/to/dest rsync --remove-source-files -options /path/to/src/ computerB:/path/to/dest rsync --remove-source-files -av /path/to/src/*.avi computerB:/path/to/dest
You can always perform a trial run with no changes made using –dry-run option:

rsync –dry-run –remove-source-files -azv /path/to/Download/*.avi laptop:~/Download
If you like output run the final command without –dry-run option:

rsync –remove-source-files -azv /path/to/Download/*.avi laptop:~/Download

RSYNC 同步完成后删除源文件

原文:https://www.cnblogs.com/lovesKey/p/14726990.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!