Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Dec 19, 2009 9:13 pm 
Offline
Junior Member

Joined: Fri Mar 27, 2009 10:41 am
Posts: 31
is it possible to restore a folder using duplicity and amazon s3?

I can restore the entire backup which is / to a folder but when I attempt to restore a folder like /etc/ to /tmp/etc/ it errors out.

Code:
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 482, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 477, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 441, in main
    restore(col_stats)
  File "/usr/bin/duplicity", line 223, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/bin/duplicity", line 238, in restore_get_patched_rop_iter
    backup_chain = col_stats.get_backup_chain_at_time(time)
  File "/usr/lib/python2.5/site-packages/duplicity/collections.py", line 717, in get_backup_chain_at_time
    raise CollectionsError("No backup chains found")
duplicity.collections.CollectionsError: No backup chains found



I'm not using encryption at all just normal duplicity backup while testing things out.
Code:
duplicity  --no-encryption s3+http://LINODE_BACKUP/etc/  /tmp/etc/


Top
   
 Post subject:
PostPosted: Sun Dec 20, 2009 2:07 am 
Offline
Senior Newbie

Joined: Sun Dec 20, 2009 1:57 am
Posts: 5
Try:
Code:
duplicity --file-to-restore etc/ --no-encryption s3+http://LINODE_BACKUP /tmp/etc/ 


Top
   
 Post subject:
PostPosted: Sun Dec 20, 2009 11:08 am 
Offline
Junior Member

Joined: Fri Mar 27, 2009 10:41 am
Posts: 31
your command restores everything


Top
   
 Post subject:
PostPosted: Mon Dec 21, 2009 4:44 am 
Offline
Senior Newbie

Joined: Sun Dec 20, 2009 1:57 am
Posts: 5
It works for me (duplicity 0.6.04). Try add param --verbosity and analyze command output.


Top
   
 Post subject:
PostPosted: Tue Dec 22, 2009 11:09 pm 
Offline
Junior Member

Joined: Fri Mar 27, 2009 10:41 am
Posts: 31
tried both /etc and etc/ but tells me its not in the archive?

etc/ not found in archive, no files restored.
OR
/etc/ not found in archive, no files restored.


very strange because if i dump the entire archive its there and restores but I don't see dumping the entire machine for one folder very efficient, I must be doing something wrong?

-rw------- 1 root root 12288 2009-12-19 19:59 aquota.user
drwxr-xr-x 2 root root 2696 2009-09-21 09:28 bin
drwxr-xr-x 2 root root 48 2008-04-15 01:53 boot
drwxr-xr-x 103 root root 5192 2009-12-20 10:56 etc
drwxr-xr-x 13 root root 328 2009-12-03 22:18 home
drwxr-xr-x 2 root root 48 2008-05-29 16:51 initrd
drwxr-xr-x 12 root root 4792 2009-12-03 21:39 lib
lrwxrwxrwx 1 root root 4 2009-12-21 10:38 lib64 -> /lib
drwx------ 2 root root 48 2008-05-29 14:38 lost+found
drwxr-xr-x 2 root root 48 2008-05-29 16:51 media
drwxr-xr-x 2 root root 48 2008-05-29 16:51 opt
drwxr-xr-x 7 root root 864 2009-12-19 19:58 root
drwxr-xr-x 2 root root 3448 2009-09-21 09:28 sbin


Top
   
 Post subject:
PostPosted: Tue Dec 22, 2009 11:56 pm 
Offline
Junior Member

Joined: Fri Mar 27, 2009 10:41 am
Posts: 31
I've installed s3fs filesystem and did a restore using that and it works !
duplicity --file-to-restore=etc file:///amazon/ etc/

thanks for your help still unsure on the restore but at least i can do a restore later if i need to.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group