Fortunately EXT3 and EXT4 provide the ability to recover deleted files (unlike XFS - which I found out the hard way!)
To perform the file recovery we should firstly install extundelete:
dnf install extundelete
and we can then restore a singular file with:
extundelete --restore-file myuser/Documents/important_document.txt /dev/mapper/fedora-home
(where '/dev/mapper/fedora-home' is the block device.)
No comments:
Post a Comment