After rsyncing my backup drive to a new hard drive, I can't back up to the new drive

Asked by Jonathon Hodges

Hi Michael,
It's perhaps not the best way to duplicate my old backup (the drive is failing) to a new drive but I used rsync to make a copy of my whole drive.

rsync -r -n -t -p -o -g -v --progress --delete --ignore-existing -l -D /media/old_backup/ /media/new backup/

I've reconfigured Déjà Dup to backup to the new drive but it fails with a 'Bad encryption key' error. I deleted the key (as suggested in other questions) and re-entered my password (after checking it) but it still gives the same error.

Can you see what I've done wrong?

Kind regards,
Jonathon

Question information

Language:
English Edit question
Status:
Solved
For:
Déjà Dup Edit question
Assignee:
No assignee Edit question
Solved by:
Jonathon Hodges
Solved:
Last query:
Last reply:
Revision history for this message
Michael Terry (mterry) said :
#1

No, that's odd. I'm not very familiar with all those rsync arguments, but if the end result is a copy of the files, I would expect it to work. One thing to try is to delete ~/.cache/deja-dup . Maybe the metadata there is getting confused with the new path. That's just a guess though.

Revision history for this message
Jonathon Hodges (jonblondie) said :
#2

Hi Michael,
I tried your suggestion but unfortunately that just takes longer to tell me Bad encryption password.

I also tried deleting both the key and ~/.cache/deja-dup. Same result.

Kind regards,
Jonathon

Revision history for this message
Jonathon Hodges (jonblondie) said :
#3

Hi Michael,
I think I've figured it out. There were three empty duplicity-* files from my last backup set, the manifest, volume and signature file all had zero byte size. After deleting these it worked again. It's possible that deleting the ~/.cache/deja-dup and the password key helped too.

Sorry for the trouble.

Jonathon