From 3120b3e86e7d4194d737669a021ff0aec28d1f64 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 12 May 2010 10:48:32 -0700 Subject: [PATCH] hammer utility - Update manual page * Update the manual page with information on how to properly restore from a snapshot. --- sbin/hammer/hammer.8 | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- 2.41.0