Oopsie Fixed

Careful with rsync direction or else

In the rush before Thanksgiving, I rsync'd my desktop to laptop backwards. Which deleted all files on my desktop's personal directory that were new since the last sync. (using rsync -d delete, so that renames aren't duplicated; but finger error, i was pushing not pulling, using wrong alias command, oops argh).

I did manage to grab the whole scrollback in laptop terminal listing all the deleted files, good.

(Looked to have a lot of things that were previously merged with hardlink(8) to save space! Unexpected as the push rsync did have -H to preserve hardlinks?.)

Desktop /home is formatted ext4, a journalling filesystem, so this should be easy, right ? It's not quite as sparkly-shiny as btrfs but good enough?

Googling found two alternatves for undeleting ext4 using journal

A quick Google from the laptop found two choices

ext4magic

extundelete

compare/contrast

My solution