recovering a file: hammer history != undo -ai
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:
> 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
> . 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
$ cp /var/hammer/<fs>/<snapshotdir>/test.img test.img
should restore the image.
More information about the Users