extundelete
Recover deleted files from ext3 or ext4 partitions by parsing the journal. tldr-pages
On Linux
Linux
Restore all deleted files inside partition N on device X
sudo extundelete /dev/sdXN --restore-allIdentifyRestore a file from a path relative to root (Do not start the path with /)
extundelete /dev/sdXN --restore-file path/to/fileIdentifyRestore a directory from a path relative to root (Do not start the path with /)
extundelete /dev/sdXN --restore-directory path/to/directoryIdentifyRestore all files deleted after January 1st, 2020 (in Unix time)
extundelete /dev/sdXN --restore-all --after 1577840400Identify