简体   繁体   English

同步目录中的同步文件,但不包含文件夹

[英]unison sync files in directory but not folders

How can i tell unison given a sync path /home/user/mydata to only sync 如何在给定同步路径/ home / user / mydata的情况下告诉统一,仅同步

/home/user/mydata/file.txt
/home/user/mydata/data.txt
but not
/home/user/mydata/subfolder

I've simplified the question to this example but is there a way to tell it to sync only files at a specific path? 我已将问题简化为该示例,但是有没有办法告诉它仅同步特定路径的文件?

In your profile for that directory you can do something like 在该目录的个人资料中,您可以执行以下操作

ignore = Path subfolder

For more examples take a look at the example here 有关更多示例,请在此处查看示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM