I found solution in this post:
In cronjob, $PATH is not like $PATH in bash. So I need to add /snap/bin/
to use lxc.
/snap/bin/lxc export "${i}" "/mnt/backupusb/lxd/${i}-backup-${NOW}.tar.xz" --optimized-storage
Hope this help.
Thanks
I found solution in this post:
In cronjob, $PATH is not like $PATH in bash. So I need to add /snap/bin/
to use lxc.
/snap/bin/lxc export "${i}" "/mnt/backupusb/lxd/${i}-backup-${NOW}.tar.xz" --optimized-storage
Hope this help.
Thanks