Hacker News new | ask | show | jobs
by spockz 13 days ago
To everyone here encrypting their data before sending it offsite.

How do you backup/store your encryption keys? How do you test restore?

5 comments

I use restic with backrest front end to store encrypted files on backblaze. Makes restoring from local and remote backups pretty easy. I have backrest instances on two computers so I can easily access if one goes down. (Hard learned lesson). Then the keys are additionally stored in encrypted password manager file which in turn is synced on multiple devices and additionally stored off site.
I keep my passwords in a KeePass vault that syncs to multiple devices (computers, phones, tablets). I keep snapshots of the vaults so that if it gets corrupted, I can roll back to a previous daily version and not lose any data. And given I access the vault multiple times a day, I'll notice a corrupt vault file pretty rapidly.

Once a quarter, I rotate offsite buckets, so if my backup corrupts, I can restore from last quarter's backup, otherwise I don't test offsite restores, but I do run weekly metadata consistency checks in rustic (rustic check), but I don't verify the data itself (--read-data). I do verify the data itself for my onsite backups weekly, where bandwidth is free.

I use kopia CLI to store my encrypted data to backblaze B2 bucket. kopia is S3- storage compatible and makes backing up and restoring stuff easy. I store encryption keys locally inside encrypted vaults and my password manager.

And I make it a habit to test my backups once every 6 months just in case. Another backup goes to my local hard-drive (encrypted) using kopia as well because you never know.

I keep a copy of the key on USB stick on my keys which leaves the house with me whenever I do. I regularly test the stick. Also keep a paper copy in the house.

I don't test the restore, though. Sigh... I suppose I should.

Really wish colo was more affordable. And disks. It's getting expensive to have your own private data.

When I started backing up my data I instantly understood that backup service will browse it, so client-side encryption is absolute must-have. People who don't do this shouldn't be a part of this conversation. Rclone offers exactly this out-of-the-box, and it's open-source.

Regarding encryption keys, you only need one. I memorized a long random password that also serves as encryption password for my computer (Linux) to the point I can enter it even when tripping balls (tested lol).

Testing restore... realistically you only need to do it like once a year maximum. I don't recall the details, but either rclone does have some option for that, or I can simply restore and then diff. I have everything in one big bucket so it's easy.

Things might get problematic if your data is a million copies of 4k Lord of the Rings Extended Cut, but for normal people who store family photos, questionable porn, Pentagon blueprints, and instructions for home-made weapons, it'll do.