[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Confusion about including and excluding files in tarsnap.conf versus the command line
- To: Michael Sierchio <kudzu@tenebras.com>
- Subject: Re: Confusion about including and excluding files in tarsnap.conf versus the command line
- From: Graham Percival <gperciva@tarsnap.com>
- Date: Fri, 9 Nov 2018 11:39:35 -0800
- Cc: tarsnap-users@tarsnap.com
- In-reply-to: <CAHu1Y73zv_OTgzLH-PAfCFeDHJ3ynhz6wm=Ft+vdduSXwfLSQQ@mail.gmail.com>
- References: <1541726412.2640.39.camel@wrathall> <20181109020712.GA25955@mac> <CAHu1Y73zv_OTgzLH-PAfCFeDHJ3ynhz6wm=Ft+vdduSXwfLSQQ@mail.gmail.com>
On Thu, Nov 08, 2018 at 07:57:42PM -0800, Michael Sierchio wrote:
> envoyé par un téléphone mobile avec «autocorrect» démoniaque
> On Thu, Nov 8, 2018, 18:07 Graham Percival <[1]gperciva@tarsnap.com
> wrote:
>
> Careful there! "--exclude" only accepts a single value.
>
> Except it takes globbed names, right?
Yes, provided that the shell doesn't expand them. (so put the globbed name
inside quotes)
For example:
$ ls double-zeros*
double-zeros-bsd.tar double-zeros-gnu.tar
$ tarsnap -c --dry-run -v --include double-zeros* double-zeros-*
a double-zeros-bsd.tar
$ tarsnap -c --dry-run -v --include "double-zeros*" double-zeros-*
a double-zeros-bsd.tar
a double-zeros-gnu.tar
$
I'll add a warning about this to selecting-files.html.
Cheers,
- Graham