I am new to Duplicity and trying to test it as a new backup tool. However, I have found that it permits incremental backups with new symmetric passphrases which then causes the backup to be unrecoverable. For instance, this is my test script:
#!/bin/bash
PASSPHRASE=one duplicity full /home/ken/scripts file:///home/ken/tmp/
read -p "Press [Enter] key to start incremental backup..."
PASSPHRASE=two duplicity incr /home/ken/scripts file:///home/ken/tmp/
duplicity verify file:///home/ken/tmp/ /home/ken/scripts
Trying to run the verify line causes this result:
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Fri Apr 15 18:15:41 2022
GnuPG passphrase for decryption:
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: AES256.CFB encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
===== End GnuPG log =====
I would have expected on the incremental backup for Duplicity to check the passphrase matched the passphrase of the original full backup.
Is this a bug or a feature?
How can I ensure my incremental backups are performed consistently with the previous backup so I don't corrupt my backup files?