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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2020-07-22 20:16:32

sphen
Member
Registered: 2020-06-13
Posts: 45

--uninstall-cron issue

seems this flag does not work. update and install is fine - it will not remove on any of my hosts.

[root@pro1:/vmfs/volumes/5d75000d-393caa77-6cf5-a0369f3ea540/XSI/pro1/XSIBackup-DC] ./xsibackup --update-cron
-----------------------------------------------------------------------------------------------------------
UPDATE CRON (root)
-----------------------------------------------------------------------------------------------------------
The (c)ESXi cron was updated with (c)XSIBackup-DC cron of user root
-----------------------------------------------------------------------------------------------------------
The ESXi crond service was restarted
-----------------------------------------------------------------------------------------------------------
Removed <tmp> dir        OK
-----------------------------------------------------------------------------------------------------------
Removed PID              OK
-----------------------------------------------------------------------------------------------------------
[root@pro1:/vmfs/volumes/5d75000d-393caa77-6cf5-a0369f3ea540/XSI/pro1/XSIBackup-DC] ./xsibackup --uninstall-cron
Could not find any cron install for user root
-----------------------------------------------------------------------------------------------------------
The ESXi crond service was restarted
-----------------------------------------------------------------------------------------------------------
Removed <tmp> dir        OK
-----------------------------------------------------------------------------------------------------------
Removed PID              OK
-----------------------------------------------------------------------------------------------------------
[root@pro1:/vmfs/volumes/5d75000d-393caa77-6cf5-a0369f3ea540/XSI/pro1/XSIBackup-DC] cat /var/spool/cron/crontabs/root
#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  *    *   *   *   /bin/hostd-probe.sh ++group=host/vim/vmvisor/hostd-probe/stats/sh
00   1    *   *   *   localcli storage core device purge
0 0 1-31/2 * * "/vmfs/volumes/QNAP3/XSI/pro1/XSIBackup-DC/etc/jobs/001" > /dev/null 2>&1 # Added by XSIBackup

Offline

#2 2020-07-22 20:17:52

sphen
Member
Registered: 2020-06-13
Posts: 45

Re: --uninstall-cron issue

for now i have just commented out the cron line under /path/to/xsibackup/var/spool/cron/root-crontab and --update-cron. this clears it out successfully.

Offline

#3 2020-07-24 11:41:41

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: --uninstall-cron issue

You are mixing things that sound similar but are not the same:

--update-cron copies the contents of your local crontab at <installation-dir>/var/spool/cron/root-crontab to the ESXi crontab at /var/spool/cron/crontabs/root

--uninstall-cron removes the entry in /etc/rc.local.d/local.sh that allows to repopulate the ESXi crontab when you reboot the host. Your output is just letting you know that there isn't any entry installed for user root. For --uninstall-cron to work, you have to previously run --install-cron

Both commands contain the string cron, but are not related. Your output is perfectly right.

Offline

#4 2020-07-24 12:35:26

sphen
Member
Registered: 2020-06-13
Posts: 45

Re: --uninstall-cron issue

thank you - i understand now.

Offline

Board footer