diff --git a/sbin/mksnap_ffs/mksnap_ffs.8 b/sbin/mksnap_ffs/mksnap_ffs.8 --- a/sbin/mksnap_ffs/mksnap_ffs.8 +++ b/sbin/mksnap_ffs/mksnap_ffs.8 @@ -48,6 +48,15 @@ .Nm utility creates a snapshot named .Ar snapshot_name . +This name is a path in the file system, typically this is under .snap +in the root of the file system but it can be anywhere. Snapshots can +be listed using the +.Xr snapinfo 8 +command. +.Pp +After a snapshot is taken it appears as a file the size of the file +sysem of which it was taken. It can be moved/renamed or deleted (which +removes the snapshot). .Pp The group ownership of the file is set to .Dq Li operator ; @@ -57,20 +66,28 @@ or members of the .Dq Li operator group. + .Sh EXAMPLES Create a snapshot of .Pa /usr/home file system and mount the snapshot elsewhere: .Bd -literal -offset indent -mksnap_ffs /usr/home/snapshot -mdconfig -a -t vnode -o readonly -f /usr/home/snapshot +mksnap_ffs /usr/home/.snap/snap1 +mdconfig -a -t vnode -o readonly -f /usr/home/.snap/snap1 mount -o ro /dev/md0 /mnt/ .Ed + +Delete a snapshot: +.Bd -literal -offset indent +rm /usr/home/.snap/snap1 +.Ed .Sh SEE ALSO +.Xr rm 1 , .Xr chmod 2 , .Xr chown 8 , .Xr mdconfig 8 , -.Xr mount 8 +.Xr mount 8 , +.Xr snapinfo 8 .Sh HISTORY The .Nm