[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: firstname.lastname@example.org
- Subject: Re: Confusion about including and excluding files in tarsnap.conf versus the command line
- From: Craig Hartnett <email@example.com>
- Date: Thu, 14 Mar 2019 08:13:29 -0700
- Authentication-results: nc036.ninernet.net (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=mail.niner.net
- In-reply-to: <20181124203045.GA21984@mac>
- References: <1541726412.2640.39.camel@wrathall> <20181109020712.GA25955@mac> <1541988151.9798.22.camel@wrathall> <20181112190546.GA9109@mac> <1543023183.2691.71.camel@wrathall> <20181124203045.GA21984@mac>
Thanks for your reply, and my humble apologies for the ridiculous length
of time in responding. I blame Christmas.
Have finally got back to this and I see the mistake in my script that
meant the output file wasn't even being created. Totally my fault.
On Sat, 2018-11-24 at 12:30 -0800, Graham Percival wrote:
> On Fri, Nov 23, 2018 at 05:33:03PM -0800, Craig Hartnett wrote:
> > Hi Graham,
> > Thanks for your reply. Sorry for not getting back to you sooner.
> No problem. I'm glad it worked out!
> > The cron job has been happily running all week, so things are good.
> > However, the script at https://www.tarsnap.com/tips.html#receive-mail
> > refers to an output file that isn't actually created, so should I be
> > specifying the output file name on the command line or somewhere else?
> > Doesn't seem like it's needed though, as cron sends along the output
> > anyway.
> I'm not certain that I follow. That script creates a (temporary) output file,
> dumps info into it, emails it to you, then deletes the output file.
> Hmm, the script would be easier to read if I had a
> # Clean up
> rm $tarsnap_output_filename
>  I just noticed that it only sends info if you have "print-stats" in a
> config file; otherwise a successful backup will send an empty email with the
> subject "Tarsnap backup success". I think that's the right behaviour to have,
> but I should add a note about print-stats.
> - Graham