duplicity-tracker
[Top][All Lists]
Advanced

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

[Duplicity-tracker] [patch #6403] Restore by overwriting files/directori


From: Jeremy Polen
Subject: [Duplicity-tracker] [patch #6403] Restore by overwriting files/directories by using --force option
Date: Mon, 04 Feb 2008 17:46:06 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-us) AppleWebKit/523.10.6 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6

URL:
  <http://savannah.nongnu.org/patch/?6403>

                 Summary: Restore by overwriting files/directories by using
--force option
                 Project: duplicity
            Submitted by: jeremyttu
            Submitted on: Monday 02/04/2008 at 17:46
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

In file commandline.py under method process_local_dir(action,
local_pathname), change the IF statement below from (around line 392):

if local_path.exists() and not local_path.isemptydir():

TO

if (local_path.exists() and not local_path.isemptydir()) and not
globals.force:

And in the file patchdir.py on line 486, change:

if self.dir_new_path.exists(): # base may exist, but nothing else

TO

if self.dir_new_path.exists() and not globals.force: # base may exist, but
nothing else

The only problem is that the following is shown to the console...

"Skipping Restore/1.jpg because of previous error"




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6403>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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