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

Re: Exclude patterns in tarsnaprc



On 06/09/14 03:39, Warren Guy wrote:
> On 09/06/14 08:03, Bob Williams wrote:
>> If the leading slashes are stripped by tarsnap automatically, then it
>> probably doesn't matter whether I leave them in or not?
> 
> Stripped automatically by tarsnap from the backup path when doing the
> backup. So, your absolute exclude path `/home/foo*' won't match the
> backup path `home/foo_bar'.
> 
> However I could be mistaken. You could let us know?

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!

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid