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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 Re: General matters » Can't get cron to run xsibackup » 2019-06-17 05:38:47

Hi,

Thanks for the suggestion. However it didn't seem to help, unfortunately.

Here is my job file located at [i]xsi-dir/jobs/001[/i]:
(I am currently using the 'test-mode' variable whilst troubleshooting)

"/vmfs/volumes/OS/xsi-dir/xsibackup" \
--backup-prog=vmkfstools \
--backup-point=/vmfs/volumes/intbackup \
--backup-type=all \
--backup-how=hot \
--date-dir=yes
--use-smtp=1 \
--mail-to=******@******.com \
--backup-id=001 \
--description="vmkfstools backup of all VMs" \
--test-mode=true
--exec=yes >> "/vmfs/volumes/OS/xsi-dir/var/logs/xsibackup.log" > /dev/null 2>&1

Here is the line I would use in the [i]xsi-dir/conf/root-crontab[/i] file:

20 06 17 06 * "/vmfs/volumes/OS/xsi-dir/jobs/001" > /dev/null 2>&1

There is a logfile at [i]xsi-dir/var/logs/xsibackup.log[/i] but it remains empty...

#2 General matters » Can't get cron to run xsibackup » 2019-06-01 06:00:20

lhogan
Replies: 3

Hi there,

I'm trying to set up a scheduled backup job with xsibackup and the root crontab but can't get it to fire... I've tried everything I can think of including the troubleshooting steps in the xsibackup manual.

I have a job (001) setup and saved in xsi-dir/jobs and have confirmed that it runs manually without any error.

I have edited the xsi-dir/conf/root-crontab file and added in the job as specified in the manual - for example:
30 5 * * * "/vmfs/volumes/datastore1/xsi-dir/jobs/001" > /dev/null 2>&1

I then run the --update-cron command, and manually confirm that it has been added in the root crontab.

I also have a cron test running that outputs the date to a file every minute which confirms that cron is working correctly. However, the xsibackup job never runs, and I get no output whatsoever in the xsi-dir/var/logs/xsibackup.log file.

I have also tried:
> Manually restarting the cron service (but it doesn't seem to be the issue as I have confirmed cron is working correctly)
> Trying other syntax in the cron to get xsibackup to run - such as using the command "/vmfs/volumes/datastore1/xsi-dir/xsibackup --run-backup=001" to no avail.

Can anyone identify what else might be the problem here and how I can get xsibackup to run from cron?

Thanks

Liam

Board footer