this post was submitted on 16 Jan 2025
43 points (95.7% liked)

Selfhosted

60074 readers
725 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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam.

  3. Posts here are to be centered around self-hosting. Please ensure it is clear in your post how it relates to self-hosting.

  4. Don't duplicate the full text of your blog or git here. Just post the link for folks to click.

  5. Submission headline should match the article title.

  6. No trolling.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I’m going to make a backup of 2TB SSD today. I will use clonezilla mainly because that’s all I know. But do you recommend any other ways for any reason?

I want to keep the process simple and easy. And I will likely take backup once a month or so repeatedly. It doesn’t have to be ready all the time. If you need more clarification, ask away.

you are viewing a single comment's thread
view the rest of the comments
[–] ikidd@lemmy.world 17 points 1 year ago* (last edited 1 year ago) (3 children)

dd if=/dev/sda0 conv=sync,noerror bs=128K status=progress | gzip -c file.gz

You can add an additional pipe in there if you need to ssh it to another machine if you don't have room on the original.

[–] sntx@lemm.ee 5 points 1 year ago

The added info from pv is also nice ^^

[–] HubertManne@moist.catsweat.com 1 points 1 year ago (1 children)

I did a thing like this but with a ios command that wrote the disk to image and piped it to ssh but then piped it back to a waiting drive. It was great as you could pull the disk and boot right off it. Do you know if that can be done with dd?

[–] ikidd@lemmy.world 4 points 1 year ago

I'd probably dd it straight on to the drive, but I'm sure you could get it to go to New Orleans and play the Macarana before it came back if you used enough pipes.

[–] mlaga97@lemmy.mlaga97.space 1 points 1 year ago (1 children)

If zstd is available, it is a lot more efficient and performant over gzip.

[–] ikidd@lemmy.world 1 points 1 year ago

True. I've done that command for so long that I've kinda gotten gzip hardwired into my fingers.