Local cache deleted after full S3 backup when IAM sub-keys used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
After performing a full encrypted backup to S3, subsequent duplicity operations cause the local cache for that backup to be deleted, preventing further manipulation or verification of the backup.
Using duplicity 0.6.08b from Debian squeeze (testing) with python-boto 1.2a-1 and python 2.5.2.
1. Background
I create a full backup using the following command (and AWS credentials exported as env variables):
duplicity incr \
/ "s3+http://
The command completes successfully with the following output:
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
No old backup sets found, nothing deleted.
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
Last full backup is too old, forcing full backup
--------------[ Backup Statistics ]--------------
StartTime 1270996918.40 (Sun Apr 11 15:41:58 2010)
EndTime 1270996920.95 (Sun Apr 11 15:42:00 2010)
ElapsedTime 2.55 (2.55 seconds)
SourceFiles 30
SourceFileSize 2181326 (2.08 MB)
NewFiles 30
NewFileSize 2181326 (2.08 MB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 30
RawDeltaSize 2152654 (2.05 MB)
TotalDestinatio
Errors 0
-------
Expected files are available in the destination S3 bucket.
sigtar and manifest files are created in the ~/.cache/
The manifest only appears to include only 1 file out of 30, though the local manifest does match the remote (encrypted) manifest exactly.
Similarly the local and remote sigtar files match once gunzip'ed and decrypted respectively.
2. Problem
I then run a verify on my newly-created backup using the following command (again with AWS credentials exported first):
duplicity verify \
"s3+http://
I then get this output from duplicity:
Synchronizing remote metadata to local cache...
Deleting local /root/.
Deleting local /root/.
Last full backup date: none
Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
verify(
File "/usr/bin/
collated = diffdir.
File "/usr/bin/
backup_chain = col_stats.
File "/usr/lib/
raise CollectionsErro
CollectionsError: No backup chains found
ERROR:duplicity
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
verify(
File "/usr/bin/
collated = diffdir.
File "/usr/bin/
backup_chain = col_stats.
File "/usr/lib/
raise CollectionsErro
CollectionsError: No backup chains found
My local cache is deleted at the beginning of the process and duplicity is then unable to verify the backup.
Repopulating the cache manually (decrypting and gzip'ing the manifest and sigtar as appropriate) and then rerunning the verify operation deletes the cache again.
Carrying out the same steps (full backup then verify) using a local file:// backend rather than S3 works okay.
Any thoughts on where I might be going wrong?
Cheers,
Jock
Changed in duplicity: | |
status: | New → Fix Released |
See also: https:/ /answers. launchpad. net/duplicity/ +question/ 107074