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/



_______________________________________________
Duplicity-tracker mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/duplicity-tracker

Reply via email to