Lines 48-53
The
Link Here
|
48 |
.Nm |
48 |
.Nm |
49 |
utility creates a snapshot named |
49 |
utility creates a snapshot named |
50 |
.Ar snapshot_name . |
50 |
.Ar snapshot_name . |
|
|
51 |
This name is a path in the file system. |
52 |
Typically this is under .snap in the root of the file system, but it can |
53 |
be anywhere. |
54 |
Snapshots can be listed using the |
55 |
.Xr snapinfo 8 |
56 |
command. |
57 |
.Pp |
58 |
After a snapshot is taken it appears as a file. |
59 |
The file is the size of the file sysem from which it was taken. |
60 |
It can be moved, renamed or deleted (which removes the snapshot). |
51 |
.Pp |
61 |
.Pp |
52 |
The group ownership of the file is set to |
62 |
The group ownership of the file is set to |
53 |
.Dq Li operator ; |
63 |
.Dq Li operator ; |
Lines 57-76
The mode of the snapshot is set to be readable by the owner
Link Here
|
57 |
or members of the |
67 |
or members of the |
58 |
.Dq Li operator |
68 |
.Dq Li operator |
59 |
group. |
69 |
group. |
|
|
70 |
|
60 |
.Sh EXAMPLES |
71 |
.Sh EXAMPLES |
61 |
Create a snapshot of |
72 |
Create a snapshot of |
62 |
.Pa /usr/home |
73 |
.Pa /usr/home |
63 |
file system and mount the snapshot elsewhere: |
74 |
file system and mount the snapshot elsewhere: |
64 |
.Bd -literal -offset indent |
75 |
.Bd -literal -offset indent |
65 |
mksnap_ffs /usr/home/snapshot |
76 |
mksnap_ffs /usr/home/.snap/snap1 |
66 |
mdconfig -a -t vnode -o readonly -f /usr/home/snapshot |
77 |
mdconfig -a -t vnode -o readonly -f /usr/home/.snap/snap1 |
67 |
mount -o ro /dev/md0 /mnt/ |
78 |
mount -o ro /dev/md0 /mnt/ |
68 |
.Ed |
79 |
.Ed |
|
|
80 |
|
81 |
Delete a snapshot: |
82 |
.Bd -literal -offset indent |
83 |
rm /usr/home/.snap/snap1 |
84 |
.Ed |
69 |
.Sh SEE ALSO |
85 |
.Sh SEE ALSO |
|
|
86 |
.Xr rm 1 , |
70 |
.Xr chmod 2 , |
87 |
.Xr chmod 2 , |
71 |
.Xr chown 8 , |
88 |
.Xr chown 8 , |
72 |
.Xr mdconfig 8 , |
89 |
.Xr mdconfig 8 , |
73 |
.Xr mount 8 |
90 |
.Xr mount 8 , |
|
|
91 |
.Xr snapinfo 8 |
74 |
.Sh HISTORY |
92 |
.Sh HISTORY |
75 |
The |
93 |
The |
76 |
.Nm |
94 |
.Nm |