title said it all. xdTried foremost but as far as i can see it only recovers the files itself.Is there some tool which reproduces the directory tree? I mean according to path of a file. does the ext4 filesystem even keep path when removing the file? I know next to nothing about this xd...also sorry for this silly thing.
what is a good tool to restore files within their path when you rm -r from root?
filesystems;data recovery
There's extundelete, magicrescue and testdisk, and more. Of these, extundelete best suits your requirement. Explore the --restore-directory /some/path option. You can at least get your files named correctly, as they were named before your mistake. You can also limit the restoration within a date range.