this post was submitted on 16 Jul 2023
6 points (100.0% liked)

Linux

5184 readers
107 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 1 year ago
MODERATORS
 

Recently my manjaro linux laptop had a pretty bad meltdown. My solution would usually be plugging in the live boot drive and fixing whatever happened, but that takes to long and I lost a working day because of it. I need a more brute-forcy way of backing up and recovering my machines. I'm thinking daily disk image backups that I can recover just by flashing the last days image. I have ~20tb worth of old harddrives that I could put into raid using a raspberry pi but I don't really trust them all that much.

I created this backup utility afew months ago but it's also not that great. Does anybody know a solution for uploading a disk image of my computer, encrypted locally on my machine, then upload it to s3?

top 2 comments
sorted by: hot top controversial new old
[โ€“] Max_P@lemmy.max-p.me 1 points 1 year ago

Completely untested, but it shouldn't be anything particularly complicated if all you want is a full image you can flash back:

dd if=/dev/sda bs=4M | zstd -T0 -9 | openssl enc -aes256 | aws cp - s3://your-bucket/backup-sda.zstd.enc

Using tar is probably a lot more efficient though, at least you only upload what's used not the whole drive.

Or even better, use btrfs/zfs snapshots.

[โ€“] ruffsl@programming.dev 1 points 1 year ago

I've recently been looking into using Backblaze with their S3 object storage for hosting Lemmy, but it looks like they also have personal PC backup cloud offerings. Perhaps you could use them to do both?