Last updated on Friday 18th of March 2022 08:35:03 PM

©XSIBackup uninstall procedure

All editions of our software installation consist on the same, an installation folder that you define at install time, although we recommend that you keep the default folder, plus some lines added to two files in ©ESXi:

• /var/spool/cron/crontabs/root: this file is only used when you schedule some cron job.
• /etc/rc.local.d/local.sh: this file is used to initialize the software, as the crontab is not persistent across reboots and needs that the cron lines are re-added on every reboot.

Thus, uninstalling ©XSIBackup consists in the same, no matter which software edition you use: removing the installation folder and any ©XSIBackup related line in the above files.


Uninstall ©XSIBackup-DC and Free (latest edition)

All ©XSIBackup files are kept in the installation folder which is /scratch/XSI/XSIBackup-DC by default. By removing the installation directory you will be removing all ©XSIBackup files.

Apart from that you should inspect the above mentioned files, namely the crontab and the main initialization script to look for any reference to the installation directory. Just delete those lines to totally remove any ©XSIBackup-DC trace.

In case of the crontab, it is worth mentioning that it usually has 0600 permissions, which may force you to temporarily change them in order to be able to effectively edit the file.

We have prepared the code snippet below to ease that task. It will remove the default installation dir at /scratch/XSI/XSIBackup-DC plus any lines at the two mentioned files.

rm -rf "/scratch/XSI" 2>/dev/null; \
chmod 0700 /var/spool/cron/crontabs/root; \
sed -i '/\/jobs/d' /var/spool/cron/crontabs/root; \
chmod 0600 /var/spool/cron/crontabs/root; \
sed -i '/update-cron/d' /etc/rc.local.d/local.sh

(*) Please, do note that the first part of the above command contains the installation directory, that you should replace by your own, should it not be the default path.


Uninstall ©XSIBackup Classic

Since ©XSIBackup-Pro 11.0.3, the GUI incorporates an uninstall option in the "Tools" section of the GUI menu. Nevertheless for those of you willing to uninstall manually and also for XSIBACKUP-FREE users, here go the details:

XSIBackup installs to its containing folder, default is /vmfs/volumes/datastore1/xsi-dir. Apart from that, it may write some changes to the init script /etc/rc.local.d/local.sh and the user crontab, generally /var/spool/cron/crontabs/root, but that will only happen if you install the crontab via the --install-cron argument.

You can remove those lines added by XSIBackup by just using the vi editor, they can be very easily identified, but not everybody is willing to use it or learn how to use it, so here you are a simple one liner that will remove the installation folder and any lines added to the above mentioned files.

rm -rf "/vmfs/volumes/datastore1/xsi-dir" 2>/dev/null; \
chmod 0700 /var/spool/cron/crontabs/root; \
sed -i '/\/jobs/d' /var/spool/cron/crontabs/root; \
chmod 0600 /var/spool/cron/crontabs/root; \
sed -i '/update-cron/d' /etc/rc.local.d/local.sh

(*) Please, do note that the first part of the above command contains the installation directory, that you should replace by your own, should it not be the default path.