Revert "find . -exec rm -rf {} \;" in NTFS

572 views Asked by At

I accidentally deleted a bunch of files with find . -exec rm -rf {} \; from an NTFS filesystem.

I have unmounted it and tried to use ntfsundelete to restore them, but there are too many files to restore them one-by-one. I have noticed that I can see which directory the files are in (nftsundelete --parent --verbose), but this only lists the direct parent of the files, not their original path.

Is there a command for NTFS that says "restore all deleted files (ideally to their original location) that were contained in /a/b/c or a subdirectory of /a/b/c"?

0

There are 0 answers