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

Re: Exclude patterns in tarsnaprc



On Mon, Jun 09, 2014 at 11:24:02PM -0700, Colin Percival wrote:
> The paths being backed up have leading / characters stripped.  I'm pretty
> sure this happens before the paths are compared against exclude patterns.
> I'm pretty sure exclude patterns don't have leading / characters stripped.
> 
> ... if I'm misunderstanding what the code does, please let me know!

I don't know how the code does what it does, but I have paths with
leading slashes in my /etc/tarsnaprc.conf:

exclude /home/gabriel/tmp

and they *do* work:

$ tarsnap -t -f 20140601-10-HOURLY-/home home/gabriel/tmp
tarsnap: home/gabriel/tmp: Not found in archive
tarsnap: Error exit delayed from previous errors.
$ tarsnap -t -f 20140601-10-HOURLY-/home home/gabriel/
home/gabriel/
home/gabriel/bin/
[...]

(and I'm positive /home/gabriel/tmp already existed when I created this
archive.)

Best,
-- 
Gabriel