Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个目录结构如下
Client_Site/
some_folder1/
some_folder2/
some_folder3/ 很多文件
some_folder4/
Client_Site2/
等等。我想在每个客户端站点的目录结构中定位 some_folder3 并仅使用 rsync 备份该文件夹,但将目录结构的其余部分保持为空文件夹。
这可能吗?我的包含文件会是什么样子?
我相信你必须分两步完成。就像是:
rsync -dv * remote:dir/ rsync -rv some_folder3 remote:dir/
阅读神话般的男人页面。