aboutsummaryrefslogblamecommitdiff
path: root/scripts/os/freebsd/90-snapshots
blob: fce9c34c13d307726e3bdb14c1ae1cb8dbc92bc8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                         
#!/bin/sh

# Don't run autosnapshot within jails. Otherwise we will create duplicate
# snapshots with the host system.
if [ "$BOXCONF_VIRTUALIZATION_TYPE" = jail ]; then
  return 0
fi

pkg install -y zfstools
install_file -m 0644 /etc/cron.d/zfs-autosnapshot