unable to find command 'zfs'

ozgurerdogan

Renowned Member
May 2, 2010
604
5
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?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!