collection-status should list dates in a format accepted by restore -t

Bug #1302151 reported by Steven Barre
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
New
Undecided
Unassigned

Bug Description

The date/time printed out by collection-status are not acceptable for -t on restore. This means wrapping tools need to parse and transform the date.

Would also be nice if the collection-status could optionally be returned as XML/JSON or some other markup for easier parsing.

duplicity 0.6.21 (January 23, 2013)
Linux XXX 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64
/usr/bin/python 2.6.6 (r266:84292, Nov 22 2013, 12:16:22)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
CentOS 6.5

Revision history for this message
Pierre Ozoux (pierre-t) wrote :

This is more a feature request I believe, but I totally agree!

Revision history for this message
Pavel Piatruk (piatruk-p) wrote :

+1 for this bug.
As a workaround you could get dates in format that is acceptable for restoring using this oneliner.

apt-get install libtimedate-perl

duplicity collection-status $DEST | perl -ne 'if (/^\s+(Incremental|Full)\s+(.+)\s+\d+$/) { print $2,"\n" }' | perl -ne ' use Time::Piece; use Date::Parse ; print localtime( str2time("$_") )->strftime("%FT%T\n") '

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.