recovering a file: hammer history != undo -ai

Sven Gaerner sgaerner at gmx.net
Wed Jun 13 13:27:34 PDT 2012


On Wed, Jun 13, 2012 at 01:45:33AM -0300, Raimundo Santos wrote:
> Hello,
> 
> I am trying to recover a test image (10GB) which I have deleted. The file
> is present in various of my snapshots, and I do not realize how to recover
> it:
> 
> . by cpdup from a snapshot to their directory?
> . by simply cp from a snapshot to their directory?
> . by undo -o test.img test.img@@0xlast_tid?

$ cp /path/to/image/test.img@@0xlast_tid test.img
or
$ cp /var/hammer/<fs>/<snapshotdir>/test.img test.img
should restore the image.

Sven






More information about the Users mailing list