this post was submitted on 21 Feb 2024
174 points (95.8% liked)

Selfhosted

61207 readers
184 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 recently decided to replace the SD card in my Raspberry Pi and reinstall the system. Without any special backups in place, I turned to rsync to duplicate /var/lib/docker with all my containers, including Nextcloud.

Step #1: I mounted an external hard drive to /mnt/temp.

Step #2: I used rsync to copy the data to /mnt/tmp. See the difference?

Step #3: I reformatted the SD card.

Step #4: I realized my mistake.

Moral: no one is immune to their own stupidity ๐Ÿ˜‚

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Nibodhika@lemmy.world 84 points 2 years ago (2 children)

If you have one backup, you have no backup. That's a hard lesson to learn, but if you care about those photos it's possible to recover them if you haven't written stuff on that sdcard yet.

[โ€“] TWeaK@lemm.ee 35 points 2 years ago (1 children)

At least 3 backups, 2 different media, 1 offsite location.

[โ€“] krash@lemmy.ml 8 points 2 years ago* (last edited 2 years ago)

I like 3-2-1-1-0 better. Like yours, but:

  • the additional 1 is for "offline" (so you have one offsite and offline backup copy).
  • 0 for zero errors. Backups must be tested and verified.
[โ€“] xlash123@sh.itjust.works 6 points 2 years ago

Also, if you haven't tried to restore from backup, you have no backup.