summaryrefslogtreecommitdiff
path: root/sysutils/freebsd-snapshot/files/pkg-message.in
blob: 73e95f3a473203186ec47e1e4daffe60e7a4ad76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

Using periodic for flexible snapshot backup creation
----------------------------------------------------

Edit your crontab and include this:

# Perform hourly/daily/weekly maintenance (FreeBSD UFS2/ZFS snapshots only).
0	*	*	*	*	root	%%PREFIX%%/sbin/periodic-snapshot hourly
0	0	*	*	*	root	%%PREFIX%%/sbin/periodic-snapshot daily
0	0	*	*	0	root	%%PREFIX%%/sbin/periodic-snapshot weekly

and edit your periodic.conf and include this:

# UFS2/ZFS Snapshot Creation
snapshot_enable="YES"
snapshot_schedule="/,/usr:2:1:0 /var:0:2:4 /home:2:6:8@8,12,16,20"

----

Using auto-mount for easy access to snapshot data
--------------------------------------------------

Edit your rc.conf and include this:

# UFS2/ZFS Snapshot Access
amd_enable="YES"
amd_flags="-a /.am -c 1800 -w 60 -l syslog /snap %%PREFIX%%/etc/amd.map.snap"