#1 2019-10-02 15:17:05

Evgeny
Member
Registered: 2018-08-16
Posts: 12

Help to newbie with actual version

Hello! Faced with some trouble while installing actual version of XSIBACKUP-FREE - previous version looks like this: there was xsibackup-cron file (so I added necessary lines to it) and also there was file /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
*/1 * * * * '/vmfs/volumes/datastore1/xsi/xsibackup-cron' >> '/vmfs/volumes/datastore1/xsi/xsibackup-cron.log' 2>&1

And now I cannot see last line in my /var/spool/cron/crontabs/root, instead I have a file /vmfs/volumes/datastore1/xsi-dir/conf/root-crontab but when I added all necessary lines (for example, "/vmfs/volumes/datastore1/xsi-dir/xsibackup" --time="Wed 14:55" --backup-point="/vmfs/volumes/datastore1/backup" --backup-type=custom --backup-vms=testvm) - nothing has happened. I can only use XSIBACKUP-FREE manually, typing in command line:

./xsibackup --time="Wed 14:55" --backup-point="/vmfs/volumes/datastore1/backup" --backup-type=custom --backup-vms=testvm

It works in this case. How can I use cron for my tasks? Thank you for answers.

Last edited by Evgeny (2019-10-02 15:18:18)

Offline

#2 2019-10-03 15:42:03

admin
Administrator
Registered: 2017-04-21
Posts: 1,368

Re: Help to newbie with actual version

If you were using a version previous to 11.0.0, please read this post.:

https://33hops.com/xsibackup-free-11-th … anged.html

Offline

#3 2019-10-21 13:36:05

Evgeny
Member
Registered: 2018-08-16
Posts: 12

Re: Help to newbie with actual version

I am sorry but - where is some option to provide mail server coordinates? For example, this is old syntax of XSIBackup:

"/vmfs/volumes/datastore1/xsi/xsibackup" --time="Tue 16:00" --backup-point="/vmfs/volumes/datastore1/backup" --backup-type=custom --backup-vms=dc.testdomain.com --mail-from=admin@testdomain.com --mail-to=admin@testdomain.com --smtp-srv=mail.testdomain.com --smtp-port=25 --smtp-usr=admin --smtp-pwd=password

How can I insert all these parameters to some of backup jobs?

Offline

#4 2019-10-21 15:14:03

admin
Administrator
Registered: 2017-04-21
Posts: 1,368

Re: Help to newbie with actual version

Edit the conf/smtpsrv file adding some SMTP server, then invoke that server from the backup job by adding --mail-to=some@email.com --use-smtp=N, where N is the ordinal in the conf/smtpsrv file

Offline

#5 2019-10-21 15:53:23

Evgeny
Member
Registered: 2018-08-16
Posts: 12

Re: Help to newbie with actual version

Still not working :-( Once again, step by step:

/vmfs/volumes/datastore1/xsi-dir/jobs/001:
###############################
"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=XSITools:z \

--backup-point="/vmfs/volumes/datastore1/vmbackup" \
--backup-type=Custom \
--backup-vms="vm.domain.com" \
--backup-how=Hot \
--date-dir=yes \

--use-smtp=1 \
--mail-to=admin@domain.com \
--backup-id=001 \
--description="XSITools backup of production VMs" \


--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"
####################################

Here is my config for mail server (/vmfs/volumes/datastore1/xsi-dir/conf/smtpsrvs):
1;mail.domain.com:25;admin@domain.com;admin;password;yes;TLS;0

And, this is cron (/vmfs/volumes/datastore1/xsi-dir/conf/root-crontab):
00 15 * * * "/vmfs/volumes/datastore1/xsi-dir/jobs/001"  #every day at 15:00

So I run /vmfs/volumes/datastore1/xsi-dir/xsibackup --update-cron after adding a line to root-crontab, it's OK

But I can't see any result of running XSIBackup 11 - log is also empty. What's wrong with my config? :-( Please help.

Offline

#6 2019-10-22 09:02:05

Evgeny
Member
Registered: 2018-08-16
Posts: 12

Re: Help to newbie with actual version

May be I should to remove application and install it again? How to completely remove XSIBackup from my host?

Offline

#7 2019-10-22 10:20:13

Evgeny
Member
Registered: 2018-08-16
Posts: 12

Re: Help to newbie with actual version

So what I've made at this moment: removed all the folder xsi-dir recursively, then run:

cd /tmp && \
esxcli network firewall unload && \
wget http://a.33hops.com/downloads/?key=bq7l … 1735313865 -O XSIBACKUP-FREE-download.zip && \
unzip XSIBACKUP-FREE-download.zip && chmod 0700 install && ./install || cat xsibackup.zip && echo "" && \
rm -rf XSIBACKUP-FREE-download.zip && \
esxcli network firewall load

Accepted all the questions, install into /vmfs/volumes1/datastore1/xsi-dir Then I tried command:

cd /vmfs/volumes/datastore1/xsi-dir
./xsibackup --backup-point=/vmfs/volumes/datastore1/vmbackup --backup-type=custom --backup-vms="myvm" --mail-from=admin@
domain.com --mail-to=admin@
domain.com --smtp-srv=mail.domain.com --smtp-port=25 --smtp-usr=admin --smtp-pwd=adminpass

So this is works for me. But I can't find jobs folder (to run tasks by schedule) - should I create it manually or I did something wrong during install process?

Offline

Board footer