[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Questions on include/exclude, and others.
- To: tarsnap-users@tarsnap.com
- Subject: Questions on include/exclude, and others.
- From: Fudi Lu <fudilu@gmail.com>
- Date: Fri, 27 Aug 2010 14:48:02 +0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=xFrkVPKBFqOL9ea1LEBTiELzPO0ycejXTaMTFxakM5rGcfCOdl4lLjrLVOxygEg6S6 FYwBJAxQ+OGF98fs7sfYu7bwBDAfy+sU/svlSWCS+XUuIsmvUppeHV293nbQJpPDxaKb LsutrRx/QhnWxZr+A1DWw1eyutY6jlrLjAcuA=
- Mailing-list: contact tarsnap-users-help@tarsnap.com; run by ezmlm
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!