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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 Re: General matters » Remove Date from Backup-Point » 2019-02-24 14:16:09

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.

#2 General matters » Remove Date from Backup-Point » 2019-02-22 22:19:51

tonydotigr
Replies: 2

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"

#3 Re: General matters » CRON job does not start » 2017-10-03 02:16:51

Ok, just reinstalled again.  After a reboot the entry is removed from /var/spool/cron/crontabs/root.  Any idea what would cause this?

#4 Re: General matters » CRON job does not start » 2017-10-03 02:06:10

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?

#5 Re: General matters » CRON job does not start » 2017-09-28 12:23:16

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.

#6 Re: General matters » CRON job does not start » 2017-09-25 19:52:38

Any ideas?  All seems to work otherwise.  Run the jobs manual, even email.

#7 Re: General matters » CRON job does not start » 2017-09-25 01:57:27

admin wrote:

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.

#8 Re: General matters » CRON job does not start » 2017-09-23 18:29:47

sistemi wrote:

why not use the provided function in xsibackup?

save a copy of the xsibackup, if any
run xsibackup --inst-cron

edit 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

#9 General matters » CRON job does not start » 2017-09-23 15:19:08

tonydotigr
Replies: 11

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.

Board footer