You are not logged in.
Pages: 1
Changed the backup-prog to what's shown below, resolved the problem.
--backup-prog=vmkfstools
Have noticed I need to reboot the host before cron changes truly take affect, even after running the --update-cron command.
I would just like to have one copy of the VM(s) instead of a date format which quickly grows too big. Before it would just create a folder named after the VM. I've removed the included date string in the 'backup-point', but its still adding one. How can this be removed?
Otherwise, all is working fine.
"/vmfs/volumes/5c70130b-f0267759-5ff2-002655ea7e4d/xsi-dir/xsibackup" \
--backup-prog=XSITools:z \
--certify-backup=yes \
--backup-point=/vmfs/volumes/b008dd39-86b67918-0000-000000000000/backups/esx_backup \
--date-dir=no
--backup-type=Custom \
--backup-vms="server" \
--backup-how=Hot \
--remote-xsipath=/vmfs/volumes/5c70130b-f0267759-5ff2-002655ea7e4d/xsi-dir \
--use-smtp=1 \
--mail-from=****@gmail.com \
--mail-to=joe@test.com \
--backup-id=001 \
--description="Backup VMs" \
--override=xsibakfilter \
--on-success="backupId->001" \
--on-error="backupId->001" \
--exec=yes >> "/vmfs/volumes/5c70130b-f0267759-5ff2-002655ea7e4d/xsi-dir/var/logs/xsibackup.log"
Ok, just reinstalled again. After a reboot the entry is removed from /var/spool/cron/crontabs/root. Any idea what would cause this?
I reinstalled and its still not populating the /var/spool/cron/crontabs/root with the entry needed to run XSIBackup. Why wouldn't the /etc/rc.local.d/local.sh populate it on reboot?
Below is the entry in /etc/rc.local.d/local.sh The paths are verified to be correct.
/bin/kill $(cat /var/run/crond.pid) && /bin/echo "*/1 * * * * '/vmfs/volumes/SSD_480GB/xsi-dir/xsibackup-cron' >> '/vmfs/volumes/SSD_480GB/xsi-dir/xsibackup-cron.log' 2>&1" >> /var/spool/cron/crontabs/root && /usr/lib/vmware/busybox/bin/busybox crond
Is there a recommended method to reinstall?
I've been using this link for troubleshooting.
https://33hops.com/xsibackup-cron-how-to.html
Below is my entry in /etc/rc.local.d/local.sh The paths are correct.
/bin/kill $(cat /var/run/crond.pid) && /bin/echo "*/1 * * * * '/vmfs/volumes/597c7a50-c1a2e08e-6ef1-002655ea7e4d/xsi-dir/xsibackup-cron' >> '/vmfs/volumes/597c7a50-c1a2e08e-6ef1-002655ea7e4d/xsi-dir/xsibackup-cron.log' 2>&1" >> /var/spool/cron/crontabs/root && /usr/lib/vmware/busybox/bin/busybox crond
I believe the problems might lie in the fact that after a reboot the entry below is removed from /var/spool/cron/crontabs/root
*/1 * * * * /vmfs/volumes/597c7a50-c1a2e08e-6ef1-002655ea7e4d/xsi-dir/xsibackup-cron >> /vmfs/volumes/597c7a50-c1a2e08e-6ef1-002655ea7e4d/xsi-dir/xsibackup-cron.log 2>&1
Here's /var/spool/cron/crontabs/root after a reboot.
#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
~
~
What would cause it to get removed?
Believe I'm not seeing any errors in the logs because it's not even starting. I've verified the command runs just fine manually, even emailing.
Any ideas? All seems to work otherwise. Run the jobs manual, even email.
The crontab file is not called xsi-backup-cron, but xsibackup-cron
Typo, everything is in the xsibackup-cron. The command works just fine outside.
why not use the provided function in xsibackup?
save a copy of the xsibackup, if any
run xsibackup --inst-cronedit the file xsibackup-cron and add your backup jobs
lot of useful articles in blog https://33hops.com/blog-main.asp and man page (c)XSIBackup Classic Man Page
I've already added my working command to xsi-backup-cron and it doesn't work. Commands above were verifying that cron is running on the system. The xsibackup-cron.log is also blank.
After reboot the following command is deleted from /var/spool/cron/crontabs/root everytime.
*/1 * * * * [XSIBackup install dir]/xsibackup-cron >> [XSIBackup install dir]/xsibackup-cron.log 2>&1
Per the instructions the following command is found in vi /etc/rc.local.d/local.sh though.
/bin/kill $(cat /var/run/crond.pid) && /bin/echo "*/1 * * * * '/vmfs/volumes/597c7a50-c1a2e08e-6ef1-002655ea7e4d/xsi-dir/xsibackup-cron' >> '/vmfs/volumes/597c7a50-c1a2e08e-6ef1-002655ea7e4d/xsi-dir/xsibackup-cron.log' 2>&1" >> /var/spool/cron/crontabs/root && /usr/lib/vmware/busybox/bin/busybox crond
Have a working command line (all verified to be working manually), but can't get anything to work with cron job. I don't even see error messages (or anything) in the xsibackup-cron.log.
Ran thru the troubleshooting.
Verified this command was added to /etc/rc.local.d/local.sh (it is all one line, not separated out like guide, but looks correct)
/bin/kill $(cat /var/run/crond.pid) && /bin/echo "*/1 * * * * '/vmfs/volumes/597c7a50-c1a2e08e-6ef1-002655ea7e4d/xsi-dir/xsibackup-cron' >> '/vmfs/volumes/597c7a50-c1a2e08e-6ef1-002655ea7e4d/xsi-dir/xsibackup-cron.log' 2>&1" >> /var/spool/cron/crontabs/root && /usr/lib/vmware/busybox/bin/busybox crond
Verified this command finds cron service cronpid=$(cat /var/run/crond.pid) && ps | grep "$cronpid"
6317 66317 busybox
Verified this command ps -c | grep crond
66317 66317 busybox /usr/lib/vmware/busybox/bin/busybox crond
68265 68265 grep grep crond
Cron was installed successfully. Running esxi free 6.5.0
Any ideas? Thanks in advance.
Pages: 1