Resuming a backup with a different password should throw an error
Bug #878964 reported by
Michael Terry
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Undecided
|
Unassigned | ||
duplicity (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
To reproduce:
1) Backup with an encryption password, say "test"
2) Interrupt the backup
3) Resume the backup with a different encryption password
I would expect a typical GPG decryption error, but duplicity just continues on its merry way. And now you have a backup half encrypted with one password, half encrypted with another.
Presumably, this is because when resuming, duplicity does not need to decrypt anything. The local cached manifest is not encrypted and it doesn't need to refetch any volumes. Perhaps it should always try to download and decrypt volume 1 to test the password?
I'm attaching a test script to reproduce.
(Ubuntu 11.10, duplicity 0.6.15)
Related branches
lp:~mterry/duplicity/check-passphrase-on-restart
- ben (community): Needs Fixing
- duplicity-team: Pending requested
-
Diff: 56 lines (+28/-0)2 files modifiedduplicity-bin (+27/-0)
duplicity/log.py (+1/-0)
Changed in duplicity: | |
assignee: | nobody → Michael Terry (mterry) |
Changed in duplicity: | |
status: | New → Fix Released |
assignee: | Michael Terry (mterry) → nobody |
To post a comment you must log in.
Here's a slightly better version of the script.
If you get two "Yes!" outputs at the bottom, the bug exists.
If you get one "Yes!" and one "No vol3 exists" outputs, the bug is fixed (duplicity refused to restart the backup).