hello,
I use crontab -e edit my crontab
-----------------------------↓this is my crontab-----------------------------
30 9-18 * * * root sh /root/snapshot.bsh
* * * * * echo 1 >> /home/aaa/test
----------------------------------------------------------------------------------
and I can see log that is work
Dec 21 17:49:01 pve CRON[11746]: (root sh /root/snapshot.bsh)
Dec 21 17:49:01 pve CRON[11748]: (root) CMD (echo 1 >> /home/aaa/test)
I can't see zfs snapshot in my pve where I use crontab.
when I just do ./root/snapshot.bsh, this shell script is working.
anyone can help me? thank you very much
I use crontab -e edit my crontab
-----------------------------↓this is my crontab-----------------------------
30 9-18 * * * root sh /root/snapshot.bsh
* * * * * echo 1 >> /home/aaa/test
----------------------------------------------------------------------------------
and I can see log that is work
Dec 21 17:49:01 pve CRON[11746]: (root sh /root/snapshot.bsh)
Dec 21 17:49:01 pve CRON[11748]: (root) CMD (echo 1 >> /home/aaa/test)
I can't see zfs snapshot in my pve where I use crontab.
when I just do ./root/snapshot.bsh, this shell script is working.
anyone can help me? thank you very much
Last edited: