zfs-auto-snapshot
已安装并应用了以下设置:
# zfs get all backup
NAME PROPERTY VALUE SOURCE
backup com.sun:auto-snapshot true local
backup com.sun:auto-snapshot:monthly true local
backup com.sun:auto-snapshot:weekly true local
backup com.sun:auto-snapshot:hourly true local
backup com.sun:auto-snapshot:frequent true local
backup com.sun:auto-snapshot:daily true local
从安装到现在已经半周了,当检查快照时,只存在四个最频繁的快照:
# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
backup@zfs-auto-snap_frequent-2017-06-17-0645 3.06M - 123G -
backup@zfs-auto-snap_frequent-2017-06-17-0700 1.57M - 123G -
backup@zfs-auto-snap_frequent-2017-06-17-0715 1.43M - 123G -
backup@zfs-auto-snap_frequent-2017-06-17-0730 928K - 123G -
您应该阅读文档或源代码。
打开
/sbin/zfs-auto-snapshot
并设置系统默认选项。中的 cron 脚本
/etc/cron.d/zfs-auto-snapshot
使用适当的参数运行命令: