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