Skip to content
Roland Stühmer edited this page Sep 17, 2018 · 5 revisions

Make ZFS Snapshots work on Debian

A .deb package can be created for zfs-auto-snapshot in just a few (manual) steps.

As a non-root user do:

Get the code:

$ cd /usr/src (or wherever you want to build the .deb)
$ git clone https://github.com/zfsonlinux/zfs-auto-snapshot.git
$ cd zfs-auto-snapshot

Optional: If you want to expose snapshots via Samba's vfs_shadow_copy2 to Windows users as shadow copies (explained here) you must merge this code first:

$ git merge origin/leecallen
$ editor src/zfs-auto-snapshot.sh (manually fix some code conflicts and change `sh` to `bash` first line)
$ git add .
$ git commit -a

Get the debian-specific changes and build the .deb:

$ git merge origin/debian
$ dpkg-buildpackage -b -uc -us

As root install the .deb:

$ sudo dpkg -i ../zfs-auto-snapshot_*.deb
Clone this wiki locally