unable to find command 'zfs'

ozgurerdogan

Renowned Member
May 2, 2010
625
6
83
Bursa, Turkey, Turkey
I have a bash and have these:
/usr/sbin/pve-zsync sync --source 1.2.3.4:110 --dest zd2 --name 110 --maxsnap 10 --method ssh

I can manually run sh and it syncs vms but when I cron it I am getting: unable to find command 'zfs'

What is point here?
 
Did you set the path variable in cron?

/etc/crontab
Code:
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
In which cron did you add the line?