Move existing backups to encrypted folder

Asked by Nils Herde

Hi!

I have backups for the last ten or so months that I would like to keep. But I would like to start doing encrypted backups. Is there a way of mounting the encrypted folder, move existing backups there and then keep doing backups encrypted?

Question information

Language:
English Edit question
Status:
Solved
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Solved by:
Nils Herde
Solved:
Last query:
Last reply:
Revision history for this message
Germar (germar) said :
#1

Hi Nils!

Yes, that should be doable. Create a new encrypted BIT folder, exit BIT and mount it manually to a tmp mountpoint with encfs. Than use 'rsync -avhH /path/to/source/snapshots /path/to/encryped/snapshots' to move your snapshots while keeping hard-links.

Alternative you could use tar as this also handles hard-links. Something like 'cd /path/to/encryped/snapshots; tar cf - /path/to/source/snapshots/* | tar xf -' but I didn't test this.

After that is done and you removed the old unencrypted snapshots don't forget to fill your drive with random data once 'dd if=/dev/urandom of=/path/to/source/dummyfile bs=4k'

Revision history for this message
Nils Herde (hernil) said :
#2

Thanks for your answer, and sorry for my late reply! :-)