Restoring a directory from S3

Asked by Eric Christensen

I'm trying to restore a directory from S3. I see it listed in the backup-list but I get a "/data/Eric/files/Geneology not found in archive - no files restored." when trying to restore.

Using this as my restore command:

duplicity restore --file-to-restore "/data/yyy/zzz/Geneology" $DEST /home/xxx/Genealogy --s3-use-new-style

Any ideas what I'm doing wrong?

Question information

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

On 28.10.2016 18:53, Eric Christensen wrote:
> New question #403594 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/403594
>
> I'm trying to restore a directory from S3. I see it listed in the backup-list but I get a "/data/Eric/files/Geneology not found in archive - no files restored.".
>
> Using this as my restore command:
>
> duplicity restore --file-to-restore "/data/yyy/zzz/Geneology" $DEST /home/xxx/Genealogy --s3-use-new-style
>
> Any ideas what I'm doing wrong?
>
can you show that it lists that file using 'duplicity list-current-files'?

..ede/duply.net

Revision history for this message
Eric Christensen (sparks) said :
#2

Yes, that's what I meant by it being listed in the backup-list. The directory and all the files appear in that list.

Revision history for this message
Eric Christensen (sparks) said :
#3

Restoring individual files also seem to fail.

Revision history for this message
Kenneth Loafman (kenneth-loafman) said :
#4

Since duplicity uses tar format, the filename must also be in tar format. Try:

$ duplicity restore --file-to-restore "data/yyy/zzz/Geneology" $DEST /home/xxx/Genealogy --s3-use-new-style

Note the lack of the leading '/' in the file-to-restore.

Revision history for this message
Eric Christensen (sparks) said :
#5

Like this?

duplicity restore -r /data/Eric/files/Geneology $DEST /home/echristensen/Genealogy --s3-use-new-style -v8

Cause that still fails:
/data/Eric/files/Geneology not found in archive - no files restored.

I can provide full logs if that would help.

Revision history for this message
Eric Christensen (sparks) said :
#6

duplicity restore --file-to-restore /data/Eric/files/Geneology $DEST /home/echristensen/Genealogy --s3-use-new-style -v8

/data/Eric/files/Geneology not found in archive - no files restored.

Revision history for this message
Eric Christensen (sparks) said :
#7

Opps, sorry, I see what you're talking about. I think I already tried that but let me confirm (by trying it again).

Revision history for this message
Eric Christensen (sparks) said :
#8

duplicity restore --file-to-restore "data/Eric/files/Geneology" $DEST /home/echristensen/Genealogy --s3-use-new-style -v8

data/Eric/files/Geneology not found in archive - no files restored.

So it doesn't appear to be a / problem.

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

On 31.10.2016 19:32, Eric Christensen wrote:
> Question #403594 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/403594
>
> Eric Christensen gave more information on the question:
> duplicity restore --file-to-restore "data/Eric/files/Geneology" $DEST
> /home/echristensen/Genealogy --s3-use-new-style -v8
>
> data/Eric/files/Geneology not found in archive - no files restored.
>
> So it doesn't appear to be a / problem.
>

can you show the part of the output of 'duplicity list-current-files ...' that shows that the file/folder exists in the backup?

btw. is it Geneology or Genealogy?

..ede/duply.net

Revision history for this message
Eric Christensen (sparks) said :
#10

Yeah, the directory was misspelled. Here's the entry. There are many files in the list but this is the first few:

Thu Aug 25 03:50:33 2016 data/Eric/files/Geneology
Thu Feb 18 16:17:27 2016 data/Eric/files/Geneology/.directory
Fri Aug 12 03:43:03 2016 data/Eric/files/Geneology/Artifacts
Thu Apr 1 03:08:45 2010 data/Eric/files/Geneology/Artifacts/1870_Census_James_Family.jpg
Thu Apr 1 03:08:40 2010 data/Eric/files/Geneology/Artifacts/1880_Census_Crabtree.jpg
Thu Apr 1 03:08:46 2010 data/Eric/files/Geneology/Artifacts/1900_Census_Traeder.jpg
Thu Apr 1 03:08:38 2010 data/Eric/files/Geneology/Artifacts/1910_Census_Crabtree.jpg
Thu Apr 1 03:08:47 2010 data/Eric/files/Geneology/Artifacts/1920_Census_Harlan_Christensen.jpg
Thu Apr 1 03:08:49 2010 data/Eric/files/Geneology/Artifacts/1930_Census_Aubrey_Karr.jpg

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

ok, it should be in there ;)

let's start using bigger guns now. please send/pastebin/mail me personally (as you prefer)

1. the complete output of a restore command w/ max. verbosity '-v9'

2. the complete file listing on the backend

you may want to obfuscate private info in the output before you send it.

..ede/duply.net

Can you help with this problem?

Provide an answer of your own, or ask Eric Christensen for more information if necessary.

To post a message you must log in.