unison sync files in directory but not folders

1.7k Views Asked by At

How can i tell unison given a sync path /home/user/mydata to only sync

/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?

1

There are 1 best solutions below

1
On

In your profile for that directory you can do something like

ignore = Path subfolder

For more examples take a look at the example here