RIP my photos from 2017 and contacts from 2005

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 😂

TORFdot0 ,

I think everyone has done this. I know I have. I believe I used dmda to recover all my photos back. Unfortunately I lost all the metadata for about 3000 photos. It took years to manually retap and redate them all but at least I didn’t lose them forever

d_ohlin ,

This. I made a similarly boneheaded mistake a few months back and lost a fair amount of stuff. Thankfully 95+% of it was ancient program files and such that gave me a good excuse to go through and make some much needed cleanup actually happen for once.

BCsven ,

Unlesa you did a full zeroing format the info might still be available. There was an applicarion that attempts to rebuild the partition / Filesystem from left over meta data or inode info. I forget the name unfortunately.
Normall the strings command will get your photos but probably not if they were in a docker image database.

pHr34kY ,

Testdisk and photorec? It's saved me heaps of times.

BCsven ,

Those are good for sure. And maybe it was testdisk. There was one that just undeleted the partition table delete. as long as new data had not been written everthing would be intact

Nibodhika ,

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 ,

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

krash , (edited )

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 ,
@xlash123@sh.itjust.works avatar

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

ducking_donuts ,

Unless you’ve used something secure for formatting or wrote data to the SD after, consider attempting data recovery.

summerof69 OP ,

No luck with extundelete (segfault) and testdisk (sees some deleted files, but not /var/lib/docker). At least I can always throws it away and not worry about safety of my data! :)

Nilz ,

You can always try professional data recovery services. It just depends on how much the data is worth to you.

Atemu ,
@Atemu@lemmy.ml avatar

And how much time you want to put into not getting scammed.

notsofunnycomment ,
@notsofunnycomment@mander.xyz avatar

Condolences

tagginator Bot ,

New Lemmy Post: RIP my photos from 2017 and contacts from 2005 (https://lemmy.world/post/12219072)
Tagging:

(Replying in the OP of this thread (NOT THIS BOT!) will appear as a comment in the lemmy discussion.)

I am a FOSS bot. Check my README: https://github.com/db0/lemmy-tagginator/blob/main/README.md

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • selfhosted@lemmy.world
  • test
  • worldmews
  • mews
  • All magazines