#1 Re: General matters » backup room option - two hosts to same root folder » 2021-04-06 10:30:37

thanks admin, exactly what i was thinking, one has "esx01" and another "esx02"

also the date dir folder doesnt mess it up does it?

#2 General matters » backup room option - two hosts to same root folder » 2021-04-02 14:37:14

Robertkwild
Replies: 3

hi all,

so i have two esxi hosts and both i have installed xsibackup free, but there all backing up to the same datastore, ie

/vmfs/volumes/datastore98/backup/esx01
/vmfs/volumes/datastore98/backup/esx02

but as you can see the root folder is the same

/vmfs/volumes/datastore98/backup/

as you can see i have given each host 3tb worth as the total of my NAS is 8tb

will the below work, or am i doing it wrong

host one

/vmfs/volumes/datastore1/XSIBackup-Free/xsibackup --backup-point=/vmfs/volumes/datastore98/backup/esx01 --backup-type=running --date-dir=yes --backup-room=3000 --snapshot=doquiesce

host two

/vmfs/volumes/datastore11/XSIBackup-Free/xsibackup --backup-point=/vmfs/volumes/datastore98/backup/esx02 --backup-type=running --date-dir=yes --backup-room=3000 --snapshot=doquiesce

thanks,
rob

#3 Re: General matters » smtp file error - requires seven fields » 2021-04-01 10:07:01

my bad, i have done it

just added another "none" at the end for smtp sec

#4 General matters » smtp file error - requires seven fields » 2021-04-01 10:00:29

Robertkwild
Replies: 1

hi all,

i have esxi 6.7 and i am using XSIBACKUP-FREE 11.2.9

so instead of using a long command ie backup point, backup how smtp details etc etc, im trying the smtp file out

2;10.110.130.68:587;name@domain.com;name@domain.com;any;none

"any" as in no password and "none" as in no authentication

./xsibackup --check-smtp=robert.wild@pixelogicmedia.com --use-smtp=2

i get this error

Error: cannot determine the e-mail server credentials, each smtpsrvs entry requires seven fields, please check syntax

thanks,
rob

#6 Re: General matters » exclude only one VM from being backed up » 2021-03-16 13:14:07

ok its not working, i dont know what im doing wrong

./xsibackup --backup-point=/vmfs/volumes/datastore1/backup --backup-type=custom --backup-vms="REGEXP(^free)"

and im getting this error

Error NOVM2BAK: no VMs to backup

but i dont know why, as i have a vm called freeradius

#7 Re: General matters » exclude only one VM from being backed up » 2021-03-10 18:30:55

or can i just list running vms and exclude that vm like this

--backup-vms=esxcli vm process list | grep "Display Name" | awk '{ print $3}' | grep -v lon-p-fog

#8 General matters » exclude only one VM from being backed up » 2021-03-10 13:16:21

Robertkwild
Replies: 5

hi all,

is there anyway only to excluding one vm from being backed up, otherwise i would need to include all the vms to backup and then not include that vm in my command, like so

--backup-type=custom --backup-vms=lon-p-xrdp,aspcon,shares,dataio,lon-p-smtp... and the VM i wouldnt put down here is lon-p-fog

as you can see theres no universal convention going on here and the list goes on and on

would this work

--backup-vms=vim-cmd vmsvc/getallvms | awk '{ print $2}' | awk '(NR>1)' | grep -v lon-p-fog

thanks,
rob

#10 Re: General matters » backup job failing on one vm - disks not found » 2020-09-09 22:58:23

ok this is one for you guys as im speechless...

found out the backup fails when the vm is running

when i powered down the vm and kicked off the backup again, guess what it works with no errors

im pretty sure its to do with all the services running on this vm as its squid, i have

squid

squidclamav

clamav

c-icap

im pretty sure clamav or c-icap are messing with the backup

#11 Re: General matters » backup job failing on one vm - disks not found » 2020-09-09 16:17:33

so just to clarify, when xsibackup says disk0 and disk1 not found does it mean

disk0 = lon-d-squid.vmdk

disk1 = lon-d-squid_1.vmdk

#12 Re: General matters » backup job failing on one vm - disks not found » 2020-09-06 22:55:19

think i have found the problem

https://33hops.com/esxi-snapshot-errors … tions.html

i have checked and it has no snapshots in manage snapshots

all i can see is vmdk (disk0) and vmdk1 (disk1)

i attach a picture of my vm template

https://i.postimg.cc/gjW6dCyL/vm.png

can you spot the rogue snapshot?

thanks,
rob

#13 General matters » best backup program to use for nfs datastores » 2020-09-06 21:20:38

Robertkwild
Replies: 0

hi all,

just want your opinion on whats the best backup program to use for backing up to nfs datastores

i know Vmkfstools is out the question as this is only for local datastores

i really dont mind using rsync, i have heard its slow but if it does the job then hey...

thanks,
rob

#14 Re: General matters » backup job failing on one vm - disks not found » 2020-08-31 20:02:21

ok ive had a look in the .vmx file

scsi0:0.deviceType = "scsi-hardDisk"
scsi0:0.fileName = "lon-d-squid.vmdk"
scsi0:0.present = "TRUE"
scsi0:1.deviceType = "scsi-hardDisk"
scsi0:1.fileName = "lon-d-squid_1.vmdk"
scsi0:1.present = "TRUE"

as you can see theres 2 vmdks

if i go in the datastore, browse the vm, i can also see the 2 vmdks

lon-d-squid.vmdk
lon-d-squid_1.vmdk

also if i right click the vm edit and expand both hard drives, i see

vmdk is scsi 0:0
1.vmdk is scsi 0:1

i cant see any problems, or maybe im missing something?

#15 Re: General matters » backup job failing on one vm - disks not found » 2020-08-31 09:22:28

thanks administrator,

when you say look at the source code, is the source code in the .vmx file?

#16 General matters » backup job failing on one vm - disks not found » 2020-08-30 12:52:56

Robertkwild
Replies: 10

hi all,

i have a vm failing backup but the thing is it clones both sdX's as both vmdks say 100% done and when i go into my datastore folder i can see both vmdks there

but this is the error i get

./xsibackup: eval: line 1: disk0: not found
./xsibackup: eval: line 1: disk1: not found
Backing up virtual disks...

any help please?

thanks,
rob

#17 Re: General matters » errors detected after backups finished- where logs saved » 2020-06-07 23:14:49

i have the log but i dont know how to attach it

i cant see any errors in the log, the only error i see is when it says it has detected errors

#19 Re: General matters » not running cron jobs » 2020-06-03 12:26:51

success!

0 2 * * * /vmfs/volumes/datastore11/xsi-dir/jobs/001 # Added by XSIBackup
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Current number of crond instances is 1, service seems to be running O.K.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Killed
[root@lon-p-esx02:/vmfs/volumes/5ded0efa-410c4d6a-3b7e-ac1f6bdc45fe/xsi-dir] cd /
[root@lon-p-esx02:~] cat /vmfs/volumes/datastore11/xsi-dir/jobs/001
"/vmfs/volumes/datastore11/xsi-dir/xsibackup" \
--backup-point="/vmfs/volumes/datastore2/backup/esx02" \
--backup-type="running" \
--date-dir="yes" \
--backup-room="1000" \
--backup-id="001" \
--exec=yes >> "/vmfs/volumes/datastore11/xsi-dir/var/logs/xsibackup.log"
[root@lon-p-esx02:~]

lets see if it runs

#20 Re: General matters » not running cron jobs » 2020-06-03 12:08:18

i understand you Administrator, thanks, will let you know if it works smile

#21 Re: General matters » not running cron jobs » 2020-06-03 10:26:10

ahhhh so esxi uses busybox a cut down version of cron, good to know

ive left out the option --save-job as im just running one cron for my backups but its good to know in future or do i need this option to add a cronjob?

atm its like this

00 02 * * * /vmfs/volumes/datastore1/xsi-dir/xsibackup --backup-point=/vmfs/volumes/datastore2/backup/esx01 --backup-type=running --date-dir=yes --backup-room=1000 # Added by XSIBackup

#22 Re: General matters » not running cron jobs » 2020-06-03 09:45:24

so is this the correct  one to use on the cron?

00 02 * * 0-6/2 /vmfs/volumes/datastore11/xsi-dir/xsibackup --backup-point=/vmfs/volumes/datastore2/backup/esx02 --backup-type=running --date-dir=yes --backup-room=1000

basically every other day at 2am

ps - i would change your youtube video in how to make a cron then as this says use the time options

https://www.youtube.com/watch?v=hv2JPdVjglA

#23 Re: General matters » not running cron jobs » 2020-06-02 23:08:33

do i need to restart the host, is that why is hasnt picked up the new cron job?

EDIT - think i found the solution

/bin/kill $(cat /var/run/crond.pid)

/var/spool/cron/crontabs/root/bin/busybox crond

or is it this

/usr/lib/vmware/busybox/bin/busybox crond

#24 Re: General matters » errors detected after backups finished- where logs saved » 2020-06-02 22:53:46

where can i see the STDOUT log, sorry for the stupid question

#25 Re: General matters » not running cron jobs » 2020-06-02 22:47:25

mmm... doesnt seem to work, i have left it a few days and i cant see a new date folder in my "/vmfs/volumes/datastore2/backup/esx02"

but its added it to the  "/var/spool/cron/crontabs/root"

/vmfs/volumes/datastore11/xsi-dir/xsibackup --time="Mon 02:00|Wed 02:00|Fri 02:00|Sun 02:00" --backup-point=/vmfs/volumes/datastore2/backup/esx02 --backup-type=running --date-dir=yes --backup-room=1000 # Added by XSIBackup

if i run it manually tho without the time option it works fine

rob

Board footer