1

I want to sync my workspace directory with my external backup HD. The thing is that I use ensime and it generates an .ensime_cache subdirectory for every project and I don't want to sync those subdirectories with the backup (it can always be downloaded again if I need to rebuild the project).

How do I tell unison to ignore .ensime_cache for every project/subproject (thus with arbitrary directory depth)?

Thanks in advance.

3
  • Simple googling brought this up: cis.upenn.edu/~bcpierce/unison/download/releases/stable/… – coffeMug May 25 '16 at 14:36
  • Thanks, I had already seen and read that page. Problem is that it does not answer my question. All the examples and explanation given refer to fixed depth subdirectories, and this is not the case in question. – Jeff May 25 '16 at 15:01
  • 1
    Doesn't the very first example in that linked documentation work for you? – roaima May 25 '16 at 15:27
3

As roaima points out, the ignore setting can be used to ignore any path that contains a given keyword, so

ignore = Name .ensime_cache

should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.