1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 08:15:24 +02:00
tldr/pages/linux/extundelete.md
Managor 79b8d3e3b8
*: replace … with individual dots and refresh pages (#16368)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-05-04 10:20:26 +03:00

791 B

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: https://extundelete.sourceforge.net/options.html.

  • Restore all deleted files inside partition N on device X:

sudo extundelete {{/dev/sdXN}} --restore-all

  • Restore a file from a path relative to root (Do not start the path with /):

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

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

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

  • Restore all files deleted after January 1st, 2020 (in Unix time):

extundelete {{/dev/sdXN}} --restore-all --after {{1577840400}}