Restore a directory from a path relative to root (Do not start the path with /)

extundelete

  • Recover deleted files from ext3 or ext4 partitions by parsing the journal.
    See also `date` for Unix time information and `umount` for unmounting partitions.
    More information: <http://extundelete.sourceforge.net>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

extundelete {{/dev/sdXN}} --restore-directory {{path/to/directory}}

click the source code to copy install extundelete on any operating system with command-not-found.com