duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Duplicity-talk] problem with restores from S3


From: Russell Clemings
Subject: [Duplicity-talk] problem with restores from S3
Date: Wed, 8 Oct 2008 20:08:31 -0700

I'm having trouble getting restores from S3 to work.

The problem is similar to this:
http://www.archivum.info/address@hidden/2008-08/msg00052.html
... but so far the tips there haven't helped.

Any suggestions appreciated, thanks in advance.


I'm using duplicity 0.5.02, boto-0.9d, Python-2.5.1, librsync-0.9.7,
GnuPG 1.2.6, GnuPGInterface-0.3.2. pexpect-2.1 on:
WHM 11.23.2 cPanel 11.23.6-S27698
CENTOS Enterprise 4.7 i686 on virtuozzo - WHM X v3.1.0


Backups seem fine (pardon the word-wrap on the command):
address@hidden s3backup]# cat backup.sh
#!/bin/sh
export AWS_ACCESS_KEY_ID=XXXXXXXXX
export AWS_SECRET_ACCESS_KEY=XXXXXXXXX
export PASSPHRASE=XXXXXXXXX
export GPG_KEY=XXXXXXXXX
SOURCE=/
DEST=s3+http://BUCKETNAME
/usr/local/bin/duplicity --tempdir=/s3backup --encrypt-key=${GPG_KEY}
--sign-key=${GPG_KEY} --include=/root --exclude=/** ${SOURCE} ${DEST}
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export PASSPHRASE=
export GPG_KEY=

address@hidden s3backup]# ./backup.sh
--------------[ Backup Statistics ]--------------
StartTime 1223517552.53 (Wed Oct  8 21:59:12 2008)
EndTime 1223518346.13 (Wed Oct  8 22:12:26 2008)
ElapsedTime 793.60 (13 minutes 13.60 seconds)
SourceFiles 596342
SourceFileSize 26815329643 (25.0 GB)
NewFiles 712
NewFileSize 7887448 (7.52 MB)
DeletedFiles 22
ChangedFiles 507
ChangedFileSize 634719623 (605 MB)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 1241
RawDeltaSize 6912420 (6.59 MB)
TotalDestinationSizeChange 30587246 (29.2 MB)
Errors 0
-------------------------------------------------

I can see the resulting files in S3 (partial list using s3fox):
http://s3.amazonaws.com/BUCKETNAME/duplicity-new-signatures.2008-10-08T01:51:13-04:00.to.2008-10-08T21:58:33-04:00.sigtar.gpg
http://s3.amazonaws.com/BUCKETNAME/duplicity-inc.2008-10-08T01:51:13-04:00.to.2008-10-08T21:58:33-04:00.manifest.gpg
http://s3.amazonaws.com/BUCKETNAME/duplicity-inc.2008-10-08T01:51:13-04:00.to.2008-10-08T21:58:33-04:00.vol1.difftar.gpg
http://s3.amazonaws.com/BUCKETNAME/duplicity-inc.2008-10-08T01:51:13-04:00.to.2008-10-08T21:58:33-04:00.vol2.difftar.gpg


Now, here's the restore script:
address@hidden s3backup]# cat restore.sh
#!/bin/sh
export AWS_ACCESS_KEY_ID=XXXXXXXXX
export AWS_SECRET_ACCESS_KEY=XXXXXXXXX
export PASSPHRASE=XXXXXXXXX
export GPG_KEY=XXXXXXXXX
/usr/local/bin/duplicity -v9 --encrypt-key=${GPG_KEY}
--sign-key=${GPG_KEY} s3+http://BUCKETNAME/root /root1
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export PASSPHRASE=
export GPG_KEY=

And the (unpleasant) results:
address@hidden s3backup]# ./restore.sh
Main action: restore
0 files exist on backend
Extracting backup chains from list of files: []
Collection Status
-----------------
Connecting with backend: BotoBackend
Archive dir: None

Found 0 backup chains without signatures.
No backup chains with active signatures found
No orphaned or incomplete backup sets found.
Last full backup date: none
Using temporary directory /tmp/duplicity-zqamQ9-tempdir
Traceback (most recent call last):
  File "/usr/local/bin/duplicity", line 522, in ?
    with_tempdir(main)
  File "/usr/local/bin/duplicity", line 516, in with_tempdir
    fn()
  File "/usr/local/bin/duplicity", line 480, in main
    restore(col_stats)
  File "/usr/local/bin/duplicity", line 260, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/local/bin/duplicity", line 275, in restore_get_patched_rop_iter
    backup_chain = col_stats.get_backup_chain_at_time(time)
  File "/usr/local/lib/python2.4/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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]