allanjude / zxfer

A continuation of development on zxfer, a popular script for managing ZFS snapshot replication
BSD 2-Clause "Simplified" License
124 stars 40 forks source link

Clearly report when for instance zfs cannot be found #8

Open eelke-at-bolt opened 9 years ago

eelke-at-bolt commented 9 years ago

It would be nice when problems like not being able to find the zfs command are clearly reported.

When no PATH is set zxfer won't be able to find the zfs command but it does not report this problem. It just fails in get_zfs_list with the error "Source does not exist." which is misleading.

Maybe a good idea to test a couple of likely location like /sbin/zfs then just hoping "source zfs" will do the trick. On freebsd there is no default path for cron jobs so the script works from the commandline but fails as a cronjob.