blob: a98d6b65f5adfa6fc1d91597f0da80aabc64e4aa (
plain) (
blame)
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
28
29
30
31
32
|
[
{ type: install
message: <<EOM
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"
EOM
}
]
|