forked from extern/zfs-auto-snapshot
8aaf5f904b52a40dc63833ff040f294d35da395c
all filesystems with snapdir=visible and canmount=on are traversed for snapshots going to be removed and umount -f is called. on linux, on /proc/mounts such mounted snapshots are visible (not listed with 'mount'), but under macosx no proc exists, 'mount' again does not list them so umount -f is called with no mercy for all specific combination of fs and snapname (but should not cause any problems). there is no specific logic to utilize /proc/mount on linux, same approach is taken.
zfs-auto-snapshot: An alternative implementation of the zfs-auto-snapshot service for Macosx that is compatible with ZEVO community zfs. Automatically create, rotate, and destroy periodic ZFS snapshots. This is the utility that creates the @zfs-auto-snap_frequent, @zfs-auto-snap_hourly, @zfs-auto-snap_daily, @zfs-auto-snap_weekly, and @zfs-auto-snap_monthly snapshots if it is installed. It can backup to remote systems utilizing zfs send command. This program is a posixly correct bourne shell script. It depends only on the zfs utilities and cron, and can run in the dash shell.
Description
Languages
Shell
81.2%
Roff
12.8%
Makefile
6%