Another option is to simply check for an exit code other than 0 (this usually indicates something going wrong): # zfs send zroot/home@backup || mail root -s "something went wrong".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.