From: Matthew Dillon Date: Wed, 12 May 2010 17:48:32 +0000 (-0700) Subject: hammer utility - Update manual page X-Git-Url: https://gitweb.dragonflybsd.org/~lentferj/dragonfly.git/commitdiff_plain/3120b3e86e7d4194d737669a021ff0aec28d1f64 hammer utility - Update manual page * Update the manual page with information on how to properly restore from a snapshot. --- diff --git a/sbin/hammer/hammer.8 b/sbin/hammer/hammer.8 index 69320d4286..30294148ec 100644 --- a/sbin/hammer/hammer.8 +++ b/sbin/hammer/hammer.8 @@ -1472,6 +1472,19 @@ will be ignored. This mode is primarily designed for testing and should not be used on a production system. .El +.Sh RESTORING FROM A SNAPSHOT BACKUP +You restore a snapshot by copying it over to live, but there is a caveat. +The mtime and atime fields for files accessed via a snapshot is locked +to the ctime in order to keep the snapshot consistent, because neither +mtime nor atime changes roll any history. +.Pp +In order to avoid unnecessary copying it is recommended that you use +.Nm cpdup +.Fl VV +.Fl v +when doing the copyback. Also make sure you traverse the snapshot softlink +by appending a ".", as in "/.", and you match up the directory +properly. .Sh EXIT STATUS .Ex -std .Sh ENVIRONMENT