Skip to content
Scott Miller edited this page Dec 24, 2015 · 1 revision

Problem:

Cron mail sends this error:

Subject: Cron <root@host> zfs-auto-snapshot -q -g --label=frequent --keep=4 //

/bin/sh: 1: zfs-auto-snapshot: not found

Solution:

Edit the file /etc/cron.d/zfs-auto-snapshot

Use the following for the PATH line at the top:

PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin"

Related issue:

https://github.com/zfsonlinux/zfs-auto-snapshot/pull/44

Clone this wiki locally