Frogg logo

Frogg's web tools

Hand Crafted Tools

Home > VMWare Esxi > Esxi Crontab
Welcome on Frogg's web tools | Current date :
19/03/2024

Esxi Crontab

Edit the file /etc/rc.local.d/local.sh (it is a permanent file, it stay after Esxi reboot) copy to clipboard
#add to crontab a task
    echo "01 00 1,15 * * root /vmfs/volumes/datastore1/script/backupVM.sh" >> /var/spool/cron/crontabs/root
    #stop crontab process
    kill $(cat /var/run/crond.pid)
    #start crontab process
    crond

don't forget to set the script as executable copy to clipboard
chmod +x /vmfs/volumes/datastore1/script/backupVM.sh
Page created by the 06/04/2022 15:34
Generated in 0.001 sec & displayed in ... sec