this post was submitted on 05 Jul 2024
35 points (97.3% liked)

Selfhosted

60723 readers
386 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I'm in desparate need of setting up borgmatic for borg backup. I would like to encrypt my backups. (I suppose, an unencrypted backup is better than none in my case, so I should get it done today regardless.)

How do I save those keys? Is there a directory structure I follow? Do you backup the keys as well? Are there keys that I need to write down by hand? Should I use a cloud service like bitwarden secrets manager? Could I host something?

Im ignorant on this matter. The most I've done is add ssh keys to git forges and use ssh-copyid. But I've always been able to access what I need to without keeping those (I login to the web interface.) Can you share with me best practices or what you do to manage non-password secrets?

you are viewing a single comment's thread
view the rest of the comments
[–] Dave@lemmy.nz 4 points 2 years ago (1 children)

But if your encryption keys to your offsite backup are on-site only, doesn't that make your offsite backup worthless in the case where "offsite" is important?

If your house burns down, you don't have your encryption keys to your only backup.

[–] fullstackhipster@awful.systems 3 points 2 years ago (2 children)

Good catch... and that's why I keep up-to-date encrypted offline backups in two locations (home and office) always. That should be enough really, but I've been thinking about swapping one of those drives with a third backup at one of my relatives' house from time to time, just to make irrecoverable failure even less likely.

[–] Dave@lemmy.nz 1 points 2 years ago (1 children)

So you keep an encrypted backup at work with the decryption key at home, and an encrypted backup at home with the decryption key at work?

[–] fullstackhipster@awful.systems 2 points 2 years ago

No, that would clearly defeat the purpose of redundant backups. I remember the passphrases for my backups.