DragonFly users List (threaded) for 2009-12
Re: HAMMER: recovering directory?
So we know that we can recover files. What if a directory(lets say it
contains 3000 files) is accidently deleted or the files are overwritten,
but it doesnt exist in the last snapshot (ie. I created it today). How can
we recover that?
# cd /
# mkdir test
# touch test/a test/b test/c
# hammer synctid / # flush filesystem
# rm -rf test
# undo test
>>> test 000 0x000000010f243340 14-Dec-2009 14:44:41
# cd test@@0x000000010f243340
a b c
Note, that you don't have to call "hammer synctid" youself, as every 30 seconds the
filesystem is synced to disk.