DragonFly BSD
DragonFly users List (threaded) for 2012-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: recovering a file: hammer history != undo -ai


From: Sven Gaerner <sgaerner@xxxxxxx>
Date: Wed, 13 Jun 2012 22:27:34 +0200

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




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]