Problems Restoring files from duplicity archive

Asked by Justin Witrick

I am having issues restoring files from a duplicity archive.

When I list all the current files in the archive it shows me a list of directories, the directory I am looking for is listed as:
"S & S CD/4-6/"

When I run the restore command I escape the directory as:

duplicity restore --file-to-restore S\ \&\ S\ CD/4\-6 file:///tmp/S_and_S_container/ /tmp/4_6/

The error I get is: "S & S CD/4-6 not found in archive, no files restored."

Can someone help?

Justin

Question information

Language:
English Edit question
Status:
Answered
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
edso (ed.so) said :
#1

On 16.03.2012 15:10, Justin Witrick wrote:
> New question #190850 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/190850
>
> I am having issues restoring files from a duplicity archive.
>
> When I list all the current files in the archive it shows me a list of directories, the directory I am looking for is listed as:
> "S & S CD/4-6/"
>
> When I run the restore command I escape the directory as:
>
> duplicity restore --file-to-restore S\ \&\ S\ CD/4\-6 file:///tmp/S_and_S_container/ /tmp/4_6/
>
> The error I get is: "S & S CD/4-6 not found in archive, no files restored."
>
> Can someone help?
>

try
duplicity restore --file-to-restore "S & S CD/4-6/" file:///tmp/S_and_S_container/ /tmp/4_6/
instead.

if this still fails, do a full restore and pick from there. possibly duplicity chokes on the '&'... but i am not familiar with this part of the code.

..ede/duply.net

Revision history for this message
Justin Witrick (justin-witrick) said :
#2

I have tried to do both. the issue is that the backup seems to have some problems with at least one file when trying to do a full restore and that causes the restore to fail.

Registering (mktemp) temporary file /tmp/duplicity-t1f3RN-tempdir/mktemp-wHQVHp-713
Deleting /tmp/duplicity-t1f3RN-tempdir/mktemp-pjEVTR-3
Forgetting temporary file /tmp/duplicity-t1f3RN-tempdir/mktemp-pjEVTR-3
Processed volume 711 of 1322
Removing still remembered temporary file /tmp/duplicity-t1f3RN-tempdir/mkstemp-FQjBqo-1
Removing still remembered temporary file /tmp/duplicity-t1f3RN-tempdir/mktemp-wHQVHp-713
Traceback (most recent call last):
  File "/usr/local/bin/duplicity", line 1391, in <module>
    with_tempdir(main)
  File "/usr/local/bin/duplicity", line 1384, in with_tempdir
    fn()
  File "/usr/local/bin/duplicity", line 1318, in main
    restore(col_stats)
  File "/usr/local/bin/duplicity", line 623, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/local/lib/python2.7/dist-packages/duplicity/patchdir.py", line 524, in Write_ROPaths
    ITR( ropath.index, ropath )
  File "/usr/local/lib/python2.7/dist-packages/duplicity/lazy.py", line 320, in __call__
    self.process_w_branch(index, self.root_branch, args)
  File "/usr/local/lib/python2.7/dist-packages/duplicity/lazy.py", line 293, in process_w_branch
    branch.start_process, args)
  File "/usr/local/lib/python2.7/dist-packages/duplicity/robust.py", line 37, in check_common_error
    return function(*args)
  File "/usr/local/lib/python2.7/dist-packages/duplicity/patchdir.py", line 546, in start_process
    assert ropath.index == (), ropath.index
AssertionError: ('S_and_S_wedding', 'Wedding', '_DSC3751.NEF')

Im not sure what the issue is.

Revision history for this message
edso (ed.so) said :
#3

On 16.03.2012 18:15, Justin Witrick wrote:
> AssertionError: ('S_and_S_wedding', 'Wedding', '_DSC3751.NEF')

it claims there is a file path 'S_and_S_wedding/Wedding/_DSC3751.NEF' . is this correct? your earlier statements suggest otherwise.

.ede

Revision history for this message
Justin Witrick (justin-witrick) said :
#4

So earlier I tried to restore just a sub directory of the full backedup dir. Now when I try to restore the full directory (which is what i want) its hits an error that causes the restore to error out. (previous comment)

So im not sure what is going on.

Revision history for this message
edso (ed.so) said :
#5

On 16.03.2012 19:05, Justin Witrick wrote:
> Question #190850 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/190850
>
> Status: Answered => Open
>
> Justin Witrick is still having a problem:
> So earlier I tried to restore just a sub directory of the full backedup
> dir. Now when I try to restore the full directory (which is what i want)
> its hits an error that causes the restore to error out. (previous
> comment)
>
> So im not sure what is going on.
>

you haven't answered the question regarding the path from the mail before.

..ede

Revision history for this message
Justin Witrick (justin-witrick) said :
#6

Yes. the path is correct.

It seems to be having trouble with that directory (or more specifically with that file). And when it encounters that file it throws a errror (above) which causes duplicity to stop working.

Thanks for helping me.

Revision history for this message
edso (ed.so) said :
#7

On 18.03.2012 17:15, Justin Witrick wrote:
> Question #190850 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/190850
>
> Status: Answered => Open
>
> Justin Witrick is still having a problem:
> Yes. the path is correct.
>
> It seems to be having trouble with that directory (or more specifically
> with that file). And when it encounters that file it throws a errror
> (above) which causes duplicity to stop working.
>

ah ok, i see
'S & S CD/4-6/'
is not
'S_and_S_wedding/Wedding/_DSC3751.NEF'

still no idea why the file has no index value.

ede/duply.net

Can you help with this problem?

Provide an answer of your own, or ask Justin Witrick for more information if necessary.

To post a message you must log in.