|
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 62-76
Create a snapshot of
Link Here
|
| 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 |
.Pp |
| 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 |