xref: /freebsd/sbin/mksnap_ffs/mksnap_ffs.8 (revision c8cf3f3d0e48740c32c2b7ea85f7098298b34a52)
1d35ae777SKirk McKusick.\"
2d35ae777SKirk McKusick.\" Copyright (c) 2003 Networks Associates Technology, Inc.
3d35ae777SKirk McKusick.\" All rights reserved.
4d35ae777SKirk McKusick.\"
5d35ae777SKirk McKusick.\" This software was developed for the FreeBSD Project by Marshall
6d35ae777SKirk McKusick.\" Kirk McKusick and Network Associates Laboratories, the Security
7d35ae777SKirk McKusick.\" Research Division of Network Associates, Inc. under DARPA/SPAWAR
8d35ae777SKirk McKusick.\" contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS
9d35ae777SKirk McKusick.\" research program.
10d35ae777SKirk McKusick.\"
11d35ae777SKirk McKusick.\" Redistribution and use in source and binary forms, with or without
12d35ae777SKirk McKusick.\" modification, are permitted provided that the following conditions
13d35ae777SKirk McKusick.\" are met:
14d35ae777SKirk McKusick.\" 1. Redistributions of source code must retain the above copyright
15d35ae777SKirk McKusick.\"    notice, this list of conditions and the following disclaimer.
16d35ae777SKirk McKusick.\" 2. Redistributions in binary form must reproduce the above copyright
17d35ae777SKirk McKusick.\"    notice, this list of conditions and the following disclaimer in the
18d35ae777SKirk McKusick.\"    documentation and/or other materials provided with the distribution.
19d35ae777SKirk McKusick.\" 3. The names of the authors may not be used to endorse or promote
20d35ae777SKirk McKusick.\"    products derived from this software without specific prior written
21d35ae777SKirk McKusick.\"    permission.
22d35ae777SKirk McKusick.\"
23d35ae777SKirk McKusick.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
24d35ae777SKirk McKusick.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25d35ae777SKirk McKusick.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26d35ae777SKirk McKusick.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
27d35ae777SKirk McKusick.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28d35ae777SKirk McKusick.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29d35ae777SKirk McKusick.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30d35ae777SKirk McKusick.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31d35ae777SKirk McKusick.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32d35ae777SKirk McKusick.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33d35ae777SKirk McKusick.\" SUCH DAMAGE.
34d35ae777SKirk McKusick.\"
35d35ae777SKirk McKusick.\" $FreeBSD$
36d35ae777SKirk McKusick.\"
37c8cf3f3dSPawel Jakub Dawidek.Dd May 29, 2009
38d35ae777SKirk McKusick.Dt MKSNAP_FFS 8
39d35ae777SKirk McKusick.Os
40d35ae777SKirk McKusick.Sh NAME
41d35ae777SKirk McKusick.Nm mksnap_ffs
42d35ae777SKirk McKusick.Nd take a file system snapshot
43d35ae777SKirk McKusick.Sh SYNOPSIS
44d35ae777SKirk McKusick.Nm
45d35ae777SKirk McKusick.Ar snapshot_name
46d35ae777SKirk McKusick.Sh DESCRIPTION
47d35ae777SKirk McKusickThe
48d35ae777SKirk McKusick.Nm
49734ac3b5SRuslan Ermilovutility creates a snapshot named
50c8cf3f3dSPawel Jakub Dawidek.Ar snapshot_name .
51d35ae777SKirk McKusick.Pp
52d35ae777SKirk McKusickThe group ownership of the file is set to
53734ac3b5SRuslan Ermilov.Dq Li operator ;
54d35ae777SKirk McKusickthe owner of the file remains
55734ac3b5SRuslan Ermilov.Dq Li root .
56d35ae777SKirk McKusickThe mode of the snapshot is set to be readable by the owner
57d35ae777SKirk McKusickor members of the
58734ac3b5SRuslan Ermilov.Dq Li operator
59d35ae777SKirk McKusickgroup.
60c8cf3f3dSPawel Jakub Dawidek.Sh EXAMPLES
61c8cf3f3dSPawel Jakub DawidekCreate a snapshot of
62c8cf3f3dSPawel Jakub Dawidek.Pa /usr/home
63c8cf3f3dSPawel Jakub Dawidekfile system and mount the snapshot elsewhere:
64c8cf3f3dSPawel Jakub Dawidek.Bd -literal -offset indent
65c8cf3f3dSPawel Jakub Dawidekmksnap_ffs /usr/home/snapshot
66c8cf3f3dSPawel Jakub Dawidekmdconfig -a -t vnode -o readonly -f /usr/home/snapshot
67c8cf3f3dSPawel Jakub Dawidekmount -o ro /dev/md0 /mnt/
68c8cf3f3dSPawel Jakub Dawidek.Ed
69d35ae777SKirk McKusick.Sh SEE ALSO
70d35ae777SKirk McKusick.Xr chmod 2 ,
71d35ae777SKirk McKusick.Xr chown 8 ,
72c8cf3f3dSPawel Jakub Dawidek.Xr mdconfig 8,
734b8487d1SPhilippe Charnier.Xr mount 8
7489aa52d4SKonstantin Belousov.Sh CAVEATS
7589aa52d4SKonstantin BelousovThe disk full situation is not handled gracefully and may
7689aa52d4SKonstantin Belousovlead to a system panic when no free blocks are found.
77d35ae777SKirk McKusick.Sh HISTORY
78734ac3b5SRuslan ErmilovThe
79d35ae777SKirk McKusick.Nm
80734ac3b5SRuslan Ermilovutility first appeared in
81d35ae777SKirk McKusick.Fx 5.0 .
82