You are not logged in.
Yes, thanks. I realised that after posting and edited my original post.
V 11.2.8
Jobfile:
"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-point=/vmfs/volumes/Storage2TB/backup \
--backup-type=custom \
--backup-vms="Pamir_OES" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log" 2>&1
btw, I had to create the job dir manually
I have set it to run from cron, but thought I'd test manually by:
/vmfs/volumes/datastore1/xsi-dir/xsibackup --run-backup=001
but the log file in /vmfs/volumes/datastore1/xsi-dir/var/logs is untouched, 0 bytes and old date.
What have I done wrong?
Edit: PEBKAC... If I run the job manually without piping output then there is no log file
We shall see tomorrow when it has run from cron.
Oh. Sorry about that! Can you move my posting? I will read the link you posted and ask again, now in the correct forum if I have further questions!
Hi!
I am setting up XSIbackup and xsi-cron to take periodic backups of certain VMs. Initially to an extra harddisk in the server, but in the future to a second server to have as hot backup.
I have tested running backups manually and have now installed cron as per your instructions. The test backup is scheduled to run at 20:00
In the syslog I see:
2020-01-15T20:00:01Z crond[33580]: crond: USER root pid 15364425 cmd /usr/lib/vmware/vmksummary/log-heartbeat.py
2020-01-15T20:00:01Z crond[33580]: crond: USER root pid 15364426 cmd /sbin/hostd-probe ++group=host/vim/vmvisor/hostd-probe
2020-01-15T20:00:01Z crond[33580]: crond: USER root pid 15364427 cmd /vmfs/volumes/datastore1/xsi-dir/xsibackup --backup-point=/vmfs/volumes/Storage2TB/backup --backup-type=custom --backup-vms="Pamir_OES"
2020-01-15T20:00:01Z syslog[15364429]: starting hostd probing.
But I cannot find anything in the xsi logfile, nor any cron logfile. Ie no xsibackup-cron.log at all
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 * * * * /sbin/hostd-probe ++group=host/vim/vmvisor/hostd-probe
00 20 * * * /vmfs/volumes/datastore1/xsi-dir/xsibackup --backup-point=/vmfs/volumes/Storage2TB/backup --backup-type=custom --backup-vms="Pamir_OES" # Added by XSIBackup
cat /etc/rc.local.d/local.sh
#!/bin/sh
# local configuration options
# Note: modify at your own risk! If you do/use anything in this
# script that is not part of a stable API (relying on files to be in
# specific places, specific tools, specific output, etc) there is a
# possibility you will end up with a broken system after patching or
# upgrading. Changes are not supported unless under direction of
# VMware support.
"/vmfs/volumes/datastore1/xsi-dir/src/cron-init" root
exit 0
ps -c | grep crond
33580 33580 busybox /usr/lib/vmware/busybox/bin/busybox crond
15478889 15478889 grep grep crond
ls -l var/logs
total 0
-rw-r--r-- 1 root root 0 Oct 27 17:06 xsibackup.log