collection-status only works with spaces in filepath.

Bug #1709047 reported by Gary Hasson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

Since revision 1171, collection-status only processes filenames with spaces, due to an error in the code added in revision 1171.

The error code is:
        # quick fix to spaces in filepath
        modified_filepath = ""

The code should be:
        # quick fix to spaces in filepath
        modified_filepath = filepath

This correction has been tested successfully on versions 0.7.06 and 0.7.13.1.

Duplicity version: 0.7.06 and 0.7.13.1
Python version: 2.7.12
OS Distro and version: Ubuntu 16.04
Type of target filesystem: Linux

Duplicity Command:
echo "=== Duplicity get dates ==="
PASSPHRASE='****' duplicity collection-status \
  --archive-dir="$ArchiveDir" --name="$ArchiveName" \
  --file-changed "$SearchName" \
  "file://$DestinationPath"

Before correction, collection-status output:
=== Duplicity get dates ===
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Sat Jul 29 15:00:46 2017
-------------------------
File: Misc/examples/yad_examples.sh
Total number of backup: 0
 Type of backup set: Time: Type of file change:
-------------------------

After correction, collection-status output:
=== Duplicity get dates ===
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Sat Jul 29 15:00:46 2017
-------------------------
File: Misc/examples/yad_examples.sh
Total number of backup: 15
 Type of backup set: Time: Type of file change:
                Full Sat Jul 29 15:00:46 2017 New
         Incremental Sun Jul 30 21:10:02 2017 Changed
         Incremental Mon Jul 31 16:30:02 2017 Changed
         Incremental Mon Jul 31 16:35:03 2017 Changed
         Incremental Thu Aug 3 22:55:03 2017 Changed
         Incremental Fri Aug 4 01:20:03 2017 Changed
         Incremental Fri Aug 4 09:20:02 2017 Changed
         Incremental Fri Aug 4 09:25:02 2017 Changed
         Incremental Fri Aug 4 09:35:11 2017 Changed
         Incremental Fri Aug 4 09:45:06 2017 Changed
         Incremental Fri Aug 4 09:55:05 2017 Changed
         Incremental Fri Aug 4 10:05:02 2017 Changed
         Incremental Fri Aug 4 14:45:02 2017 Changed
         Incremental Fri Aug 4 14:55:03 2017 Changed
         Incremental Fri Aug 4 19:30:03 2017 Changed
-------------------------

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

Thanks for the fix!

Changed in duplicity:
status: New → Fix Committed
Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.7.14
Changed in duplicity:
status: Fix Committed → Fix Released
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.