duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] --list-current-files suggestions


From: Helmut Schneider
Subject: Re: [Duplicity-talk] --list-current-files suggestions
Date: 31 Jan 2003 13:34:45 +0100

> -Very helpful would be not only a list of files also the version dates
> of files in the archive.
> Otherwise it is very hard to restore an deleted file which deletion time
> you dont remember.

following patch prints the latest version time of files but doesnt help
for deleted files (time=0)

---------------------
--- ./duplicity   2002-11-30 23:41:29.000000000 +0100
+++ ./duplicity_patched      2003-01-31 13:10:16.000000000 +0100 \
@@ -170,7 +170,8 @@
        if not sig_chain:
                log.FatalError("No signature data found, unable to list
files.")
        path_iter =
diffdir.get_combined_path_iter(sig_chain.get_fileobjs())
-       for path in path_iter: print path.get_relative_path()
+       for path in path_iter: print path.get_relative_path() + "\t" + \
dup_time.timetopretty(path.get_tarinfo().mtime)
+
 
 
 def restore(col_stats):
----------------------

Helmut





reply via email to

[Prev in Thread] Current Thread [Next in Thread]