I just deleted everything from my user's home directory (/XXX/ * instead of /XXX/* !) and I found ext4magic tool to recover that data. I'm currently on Ubuntu booted from USB drive, so the partition I'm trying to recover is unmounted.
I did try to use ext4magic already and it did pretty well, but I think I'm missing some options / configs to make it work the way I'd like.
I recovered XYZ/ directory and it should contain .git subdirectory in it, but when I run the ext4magic for my "root" (as in main) user's directory the .git subdirectory was not recovered. I did run it once again for that specific directory (XYZ/.git) and it was recovered. So I suppose I missed something, because the .git subdirectory seems fine, therefore it is recoverable. I suppose there are plenty of subdirectories not recovered by my initial ext4magic run. Is there any switch / option to look "deeper" into directories structure? Or do I need to run it for each directory the initial run missed?
Forgive me if any of the above seems unclear, but I'm pretty much "in hurry" to recover that stuff and can't really focus on explaining the scenario!
This is the command I used
sudo ext4magic /dev/sda6 -r -f /add -d /media/ubuntu/backup/rec/add