Thank you for your replies, Graham and Colin.  Colin is correct.  I was
referring to when I get a file listing from a named archive with -t.  For
example:

tarsnap --keyfile tarsnap.key -tv -f MyArchive_Sunday

Having an --iso-dates option would be great!

Thanks! ...James


On Sun, Jul 24, 2016 at 11:19 PM, Colin Percival <[email protected]>
wrote:

> On 07/24/16 20:00, Graham Percival wrote:
> > On Sun, Jul 24, 2016 at 05:20:41PM -0400, James Cass wrote:
> >>    Is there a way to force long-iso date format when retrieving a file
> list
> >>    from the Tarsnap server?  By long-iso date format, I mean: yyyy-mm-dd
> >>    hh:mm:ss.  I didn't see anything in the man page, unless I
> overlooked it.
> >
> > If you add -v, then you get the date in %F %T format, which I believe is
> what
> > you want:
> >
> > $ tarsnap --list-archives -v
> > gin-2016-05-01_10-44-17       2016-05-01 10:44:17
> > gin-2016-05-01_10-42-50       2016-05-01 10:42:50
>
> I think James was talking about `tarsnap -t`, not --list-archives.  In
> which
> case the answer is no; tarsnap reproduces the traditional behaviour of tar,
> which sadly dates back to a time before people paid attention to such
> things
> as readily parsable date/time strings.
>
> But it should be easy to add an option for this... anyone want to suggest a
> name?  Maybe --iso-dates?
>
> --
> Colin Percival
> Security Officer Emeritus, FreeBSD | The power to serve
> Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid
>

Reply via email to