[英]rsync include files from specific folder?
I have a directory structure as follows我有一个目录结构如下
Client_Site/客户网站/
some_folder1/ some_folder1/
some_folder2/ some_folder2/
some_folder3/ Lots of files some_folder3/ 很多文件
some_folder4/ some_folder4/
Client_Site2/ Client_Site2/
and so on.等等。 I want to target the some_folder3 within the directory structure of each client site and only backup that folder with rsync, but maintain the rest of the directory structure as empty folders.
我想以每个客户端站点的目录结构中的 some_folder3 为目标,只使用 rsync 备份该文件夹,但将目录结构的 rest 保留为空文件夹。
Is this possible?这可能吗? What would my include file look like?
我的包含文件是什么样的?
I believe you have to do it in two steps.我相信您必须分两步完成。 Something like:
就像是:
rsync -dv * remote:dir/
rsync -rv some_folder3 remote:dir/
Read The Fabulous Man page.阅读 Fabulous Man 页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.