[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions on include/exclude, and others.



Hello,

I am unable to get include/exclude to work the way I want. The problem is that exclude always take precedence over include, and I cannot include only a few entries in a directory. In rsync-filter, I would do the following:

+ x/y
+ x/y/a
- x/y/*

In tarsnap, I cannot write --exclude='x/y/*' because it exclude everything, nor can I write --include='x/y/a' to include 'x/y/a' only because 'x/y' already recursively included everything. So how to I include a directory, but only include some of its entries?

Also, these 2 commands behaves differently:

cd test; tarsnap --dry-run --include . -vcf test .
vs
tarsnap --dry-run --include test -vcf test test

The former includes only the "." directory excluding all files under it, while the latter includes "test" recursively. Why is it so?


I've another question: Does  deduplication work on an account-wide way? ie. if I move a big file from one directory to another, the 2 directories being in different tarsnap archives, would the file block duplication be recognized?


Thanks!