You are not logged in.
Pages: 1
Hello how do I know how to add this command to the cron when starting esx?
vi /var/spool/cron/crontabs/root
*/1 * * * * /vmfs/volumes/datastore1/xsi-dir/xsibackup-cron >> /vmfs/volumes/datastore1/xsi-dir/xsibackup-cron.log 2>&1
I have to manually reset it manually after a restart.
Offline
You don't have to, have you run the command ./xsibackup [b]--install-cron[/b]?
Please, read the docs, it's all there:
[url=https://33hops.com/xsibackup-cron-how-to.html]XSIBackup Cron How to[/url]
You even have an explanatory video, step by step in Youtube:
[url=https://www.youtube.com/watch?v=hv2JPdVjglA&t=53s]Youtube video[/url]
Offline
Cron I have installed.
It is that when the restart runs the whole server, so this command will be fired.
#min hour day mon dow command
1 1 * * * /sbin/tmpwatch.py
1 * * * * /sbin/auto-backup.sh
0 * * * * /usr/lib/vmware/vmksummary/log-heartbeat.py
*/5 * * * * /sbin/hostd-probe ++group=host/vim/vmvisor/hostd-probe
00 1 * * * localcli storage core device purge
*/2 * * * * /usr/lib/vmware/vsan/bin/vsanObserver.sh
*/1 * * * * /vmfs/volumes/datastore1/xsi-dir/xsibackup-cron >> /vmfs/volumes/datastore1/xsi-dir/xsibackup-cron.log 2>&1 - after reboot this line is removed
Offline
I'm not quite getting you, but in short, yes: the crontab is added to the ESXi init script.
Offline
Pages: 1