dzacca / zfs-auto-snapshot

ZFS Automatic Snapshot Service for Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zfs-auto-snapshot

dzacca's fork

What is zfs-auto-snapshot

An alternative implementation of the zfs-auto-snapshot service for Linux that is compatible with zfs-linux and zfs-fuse.

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.

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.

What's different in this fork

I have tuned the cron jobs to suit my personal needs. The cron jobs mimic my setup on timeshit. This is my default schedule:

  • 5 frequent snapshots
  • 24 hourly snapshots
  • 5 daily snapshots
  • 3 weekly snapshots
  • 2 monthly snapshots
  • 5 apt snapshots
  • 5 boot snapshots

The makefile automatically create the folder /etc/zfs-auto-snapshot where a script is positioned for an apt automation. Under /etc/apt/apt.conf.d a file is created to pre-invoke our script. The current set-up creates a snapshot with the label apt (@zfs-auto-snap_apt) every time apt is invoked to install or update packages and it keeps a rotation of five snapshots.

About

ZFS Automatic Snapshot Service for Linux

License:GNU General Public License v2.0


Languages

Language:Shell 79.7%Language:Roff 12.4%Language:Makefile 7.1%Language:Clojure 0.8%