Hammer history question
So I accidently deleted one of my worksheets. How do I find out modification history of the file and the necessary transaction id? Ive look at hammer history but it doesnt seem to show me anything but the last modification [EMAIL PROTECTED]:/home/petr/docs/callstream_files/2009# hammer history report4.ods report4.ods 000829bb8510 clean { 00086128f420 13-Nov-2008 17:57:06 } even though I modified the file at least 5 times this week and hammer cleanup hasnt been run since last sunday. What to do? Petr
Re: Hammer history question
Petr Janda schrieb: So I accidently deleted one of my worksheets. How do I find out modification history of the file and the necessary transaction id? Ive look at hammer history but it doesnt seem to show me anything but the last modification [EMAIL PROTECTED]:/home/petr/docs/callstream_files/2009# hammer history report4.ods report4.ods 000829bb8510 clean { 00086128f420 13-Nov-2008 17:57:06 } even though I modified the file at least 5 times this week and hammer cleanup hasnt been run since last sunday. Don't know if that works for already deleted files, but at least for modified files, you should be able to view the changes made to that file by using undo. Regards, Michael
Re: Hammer history question
If you want to recover the file, just look into the latest snapshot directory on your partition. Here its /home/snapshots/snap-20081121-0301/ for the latest snapshot of my /home partition. The problem is, no snapshot has been created in the last 6 days. Petr
Re: Hammer history question
:So I accidently deleted one of my worksheets. How do I find out modification :history of the file and the necessary transaction id? : :Ive look at hammer history but it doesnt seem to show me anything but the :last modification : :[EMAIL PROTECTED]:/home/petr/docs/callstream_files/2009# hammer history :report4.ods :report4.ods 000829bb8510 clean { :00086128f420 13-Nov-2008 17:57:06 :} : :even though I modified the file at least 5 times this week and hammer cleanup :hasnt been run since last sunday. : :What to do? : :Petr Try: undo -i report4.ods If hammer cleanup hasn't been run automatically and you ran it manually you may have lost the fine-grained history. i.e. hammer cleanup would lay down the new snapshot and then clear everything between the previous one in the snapshots directory and the new one. If the previous one was 6 days ago, then any intervening history will be removed. hammer cleanup has to be run regularly (from cron) if you want consistent daily snapshots. -Matt Matthew Dillon [EMAIL PROTECTED]
Re: Hammer history question
Petr Janda [EMAIL PROTECTED] wrote: If you want to recover the file, just look into the latest snapshot directory on your partition. Here its /home/snapshots/snap-20081121-0301/ for the latest snapshot of my /home partition. The problem is, no snapshot has been created in the last 6 days. All you need is a transaction id from the right time to create the snapshot now. You may want to try what I had described in http://leaf.dragonflybsd.org/mailarchive/users/2008-10/msg00095.html It is not as accurate as it could be, but it worked for me in a similar case. Johannes