[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tarsnap ignoring --exclude
- To: Peter McLachlan <peter@mobify.com>
- Subject: Re: Tarsnap ignoring --exclude
- From: Colin Percival <cperciva@tarsnap.com>
- Date: Fri, 20 Sep 2013 18:40:45 -0700
- Cc: tarsnap-users@tarsnap.com
- In-reply-to: <CAG6A76BaRYQrhaAFhuA0hHk_Fd8W7f3=-TEZg4rsAjpThZq=yA@mail.gmail.com>
- References: <CAG6A76BaRYQrhaAFhuA0hHk_Fd8W7f3=-TEZg4rsAjpThZq=yA@mail.gmail.com>
On 09/20/13 18:34, Peter McLachlan wrote:
> Tarsnap ignores my --exclude lines. Am I doing something wrong? Seems OK from
> the the man page:
>
> /usr/local/bin/tarsnap -C / --exclude /root/.snorby-cloud --exclude
> /home/peter/tmp -c -f `date +\%Y-\%m-\%d.\%H.\%M` etc home usr/local root
The --exclude option doesn't work with absolute paths, since they don't match
the relative paths of objects being stored. Take the leading / off your exclude
lines and it should work.
--
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid