©XSIBackup-Free: Free Backup Software for ©VMWare ©ESXi

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2017-06-28 10:24:47

rado
Member
Registered: 2017-05-04
Posts: 7

Cron Problem Restart

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

#2 2017-06-28 14:34:10

roberto
Moderator
Registered: 2017-04-22
Posts: 49

Re: Cron Problem Restart

You don't have to, have you run the command ./xsibackup --install-cron?
Please, read the docs, it's all there:

XSIBackup Cron How to

You even have an explanatory video, step by step in Youtube:

Youtube video

Offline

#3 2017-07-07 06:03:59

rado
Member
Registered: 2017-05-04
Posts: 7

Re: Cron Problem Restart

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

#4 2017-07-07 09:49:09

roberto
Moderator
Registered: 2017-04-22
Posts: 49

Re: Cron Problem Restart

I'm not quite getting you, but in short, yes: the crontab is added to the ESXi init script.

Offline

Board footer