https://github.com/danthem/undelete-btrfs“A tool for automating the generation of path regex for BTRFS restore as we
ll as attempt the restore for you in 3 levels. The longer a file has existed
prior to being deleted, the more likely it is to be recovered. This means t
hat the script may not always work well in "test"-environments where you jus
t create a file and then instantly try to recover it, but it should work dec
ently on a 'real' system.
You may also end up recovering an older version of the file. The script will
try to recover the most recent version but there's no guarantee the most re
cent recoverable version is the most recent version of the file.”
这个是利用官方的btrfs restore只读挽回数据功能来实现undelete的。比较幸运,我至
今没用过,只能说代码看上去靠谱。如果你够熟手,单用restore自己做undelete也行。
技术参考:
https://btrfs.readthedocs.io/en/latest/btrfs-restore.html【 在 survivor 的大作中提到: 】
: 手滑删了些文件,需要恢复。
: BTRFS,简单卷,没有RAID,单磁盘。
: 只是删了文件,删文件后没有再进行任何写操作。
: ...................
--
FROM 119.130.154.*