#1 Re: General matters » Good practices - many servers backup to one main server » 2019-01-06 21:01:55

Thank You.

If I run on server1 job with --host=1.2.3.4 and on-success=001 xsibackup will search 001 job on host 1.2.3.4 or in local machine?

#2 General matters » Good practices - many servers backup to one main server » 2019-01-05 20:21:33

matz
Replies: 3

Hello.

What are the best practices for backup multiple servers to one backup central server via WAN?
The requirement is to save the last 20 copies (deduplication) and limit the backup transfer time as much as possible.

Currently on my 1st server I have:

001. OneDiff local job to remote esxi datastore on-success and on error = 002
002. XsiTools remote job to local datastore (on backup server)

How can I backup several servers one by one, one task after another and not all at once

#3 Re: General matters » Problem restoring VM from one ESXi to another (*solved*) » 2018-12-16 20:36:46

I have same problem.

My servers are linked, and licensed (i think so)

How I can check that xsi0backup is licensed?

A-OmepPKQZ68MJ9zD76hXQ.png

#4 Re: General matters » XSI-Pro Error after Install » 2018-12-16 18:40:00

Try uninstall this way:

rm -rf "/vmfs/volumes/datastore1/xsi-dir"; \
chmod 0700 /var/spool/cron/crontabs/root; \ 
sed -i '/-dir\/jobs/d' /var/spool/cron/crontabs/root; \
sed -i '/cron-init/d' /etc/rc.local.d/local.sh

Change datastore name of course.

And install via generated oneliner from:

https://33hops.com/user-access.html

#5 Re: General matters » on success and on error » 2018-12-16 16:56:33

Still with no luck. Now Im trying different jobs:

1st: (remote job)

cat 001
"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=OneDiff \
--host=x:22 \
--snapshot=doquiesce \
--backup-point=x:22:"/vmfs/volumes/datastore1/" \
--backup-type=Custom \
--backup-vms="MAC_INVEST" \
--backup-how=Hot \
--backup-id=001 \
--description="OneVM2esxi1" \
--on-success=""backupId->002"" \
--on-error=""backupId->002"" \
--use-smtp=2 \
--mail-to=x \

2nd: (local job)

 cat 002
"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=XSITools:z \
--snapshot=doquiesce \
--override=xsibakfilter \
--backup-point=/vmfs/volumes/datastore1/deduplicated/ \
--backup-type=Custom \
--backup-vms="MAC_INVEST_XSIBAK" \
--backup-how=Hot \
--backup-room=500 \
--del-dirs=+365d \
--use-smtp=2 \
--mail-to=x \
--backup-id=002 \
--description="LocalDedu" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"

And still get:

8S8Wk8voQeiQMwWTx5ZA3Q.png

If I run remote job from host1 on host2 and want to run on-error 002, so xsi look for 002 job on host1 or host2?

#6 Re: General matters » Cant run any jobs » 2018-12-16 13:16:42

Yes, new wersion fix this.
Thank You.

#7 Re: General matters » Cant run any jobs » 2018-12-12 22:41:32

Same with all operations:

I try to check smtp server: http://prntscr.com/lu83vg

#8 General matters » Cant run any jobs » 2018-12-12 17:08:11

matz
Replies: 4

Hi,

Im trying to run any job but with no luck on one esxi box.
xsitool crash all the time.

http://prntscr.com/lu3vs0

VMkernel ns3053729 6.0.0 #1 SMP Release build-3620759 Mar  3 2016 18:41:52 x86_64 x86_64 x86_64 ESXi

What Can I do?

#9 General matters » on success and on error » 2018-12-01 14:29:25

matz
Replies: 2

Hello!

Im trying to schedule job with --on-success and --on-error commands.
My 1st job:

"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=OneDiff \
--certify-backup=yes \
--backup-point=83.144.x.x:2255:"/vmfs/volumes/backup/" \
--backup-type=All \
--backup-how=Hot \
--backup-id=01 \
--description="ALL2OCM" \
--use-smtp=2 \
--mail-to=x@x.com \
--on-success="backupId->02" \
--on-error="backupId->02" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"

And my 2nd job look like:

"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=XSITools:z \
--host=83.144.x.x:2255 \
--certify-backup=yes \
--override=xsibakfilter \
--backup-point=/vmfs/volumes/backup/deduplicated \
--backup-type=All \
--backup-how=Hot \
--del-dirs=+60d \
--use-smtp=2 \
--mail-to=x@x.com \
--backup-id=02 \
--description="ALLDEDU" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"

And when I run 1st job i have on end:

http://prntscr.com/lpczq1

#10 Re: General matters » Try to schedule job with no luck » 2018-11-02 17:40:52

This solution dont work for me.
But I remove and install cronat and its work fine smile

#11 General matters » Try to schedule job with no luck » 2018-10-27 20:33:18

matz
Replies: 3

Hello.

I try to schedule one job on my server wit gui:

http://prntscr.com/lb7you

And I have ok confirmation but job always have "minus sign":

http://prntscr.com/lb7zb1

#12 Re: General matters » Cant install xsibackup pro. » 2018-05-14 12:40:43

Thank You for answer but I cant even download file.
I check this problem on two different machines and two different ip.

I reach internet with same ip with xsi.

If i try manually download file i always get error in chrome, ff, IE:

https://prnt.sc/jhody3

#13 General matters » Cant install xsibackup pro. » 2018-05-13 20:27:37

matz
Replies: 4

Hello!

I cant install xsibackup-pro on host. I try to generete key for automated install but always get error:

The key is invalid or has expired, only two downloads are allowed per key, download a new one at 33hops.com

I try to use generated link only one time.

Thank You.

#14 General matters » Backup encryption. » 2018-04-18 19:06:25

matz
Replies: 1

Hello!

Is there any way to encrypt backups to remote localization?

#15 Re: General matters » Cannot copy VMSD file details » 2018-01-04 11:54:53

I dont think this is snapshot problem. I add --snapshot=dontquiesce flag and I have same error: (only with this one machine, weird)

4oSKqKWVQWyQP3XIJ54wVg.png

[KFD-SERVER] CLXSIDF1 error: file transfer error: Segmentation fault
packet_write_wait: Connection to 79.137.71.94: Broken pipe

#16 Re: General matters » Cannot copy VMSD file details » 2018-01-04 08:45:15

Thank You for Your support. So now I change my tactics.

I backing up vms from 1st esxi server to another by:

./xsibackup --backup-prog=onediff --backup-point="x:22:/vmfs/volumes/datastore2" --backup-type=all
 --mail-to=x@x.pl --use-smtp=1 --certify-backup=yes

And then I backup machines on remote esxi server (second) to local deduplicated storage (xsitools) by:

--host=x --backup-prog=xsitools:z --backup-point="/vmfs/volumes/datastore2/xsit-$( date +'%Y-%m')" --certify-backup=yes --backup-type=all --override=xsibakfilter --mail-to=x@x.pl --use-smtp=1

All macines except one goes OK. When I try to backup this one machine i get error (this machine working on Windows 20008 server foundation and has been converted from psyhical to virtual via vmware converter)

Logs:
https://pastebin.com/wTchjxuh

#17 Re: General matters » Cannot copy VMSD file details » 2017-12-31 09:55:54

So now, I have "half" worked solution smile

I try to make backups via xsidiff to remote esxi 6.0U2 box, and have retention with deduplication on that box.
On 1st esxi server I have runing machines that I wanted to backup to second esxi server.
So on 1st I run:

./xsibackup --backup-prog=onediff  --certify-backup=yes --backup-point="x:22:/vmfs/volumes/datastore2" --backup-type=all --mail-from=x@gmail.com --mail-to=x@x.pl --smtp-srv=smtp.gmail.com --smtp-usr=x@gmail.com --smtp-pwd=x --smtp-port=465

And I get success. On second servers I have machines with _XSIBAK.


3TFSdwK5RXCrEAEO0svLDg.png

jyDuTjIeQQyURAfTR9_-4w.png

So all ok for me. But I want backup retency, so I run on 1st server:

./xsibackup --host=ip.second.server --backup-point="/vmfs/volumes/xsinas/" --certify-backup=yes --backup-type=custom --backup-vms="CHR,Cycki,iRedMail,MAC_INVEST,W2K12R2,KFD-SERVER.KFD.local" --mail-from=x@gmail.com --mail-to=x@x.pl --smtp-srv=smtp.gmail.com --smtp-usr=x@gmail.com --smtp-pwd=x --smtp-port=465

But xsibackup dont see machines backuped by xsidiff and I get error:

dvWPAk8PRVCwQM9QZl5_JA.png

So I check VM's on second server by running ./xsibackup locally on server and I get:

rRjzYuguQq_OMo9bfCFsWw.png

#18 Re: General matters » Cannot copy VMSD file details » 2017-12-27 21:56:45

Yes, right. Its working now. Thank You. smile

I know rsync is not the best option but xsidiff never works for me. I always get error with consistency check.

[W2K12R2] info: (source) first 500M hash is: e72e0ed4b1c2af7e31806c89789ec2d2e38b5d44
[W2K12R2] info: (target) first 500M hash is: e72e0ed4b1c2af7e31806c89789ec2d2e38b5d44
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[W2K12R2] info: first 500M check | OK [ e72e0ed4b1c2af7e31806c89789ec2d2e38b5d44 ]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[W2K12R2] error DIFQMSH3: data size mistmatch: 101680 NE 101116...
[CHR] info: comparing first 500M of [CHR-flat.vmdk]...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[CHR] info: (source) first 500M hash is: 3697a163bc34f6dc73a7070216bc38641137ccc7
[CHR] info: (target) first 500M hash is: 3697a163bc34f6dc73a7070216bc38641137ccc7
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[CHR] info: first 500M check | OK [ 3697a163bc34f6dc73a7070216bc38641137ccc7 ]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[CHR] error DIFQMSH3: data size mistmatch: 128 NE 120...

#19 General matters » Cannot copy VMSD file details » 2017-12-27 07:16:17

matz
Replies: 9

Hello.

I have two servers with esxi free 6.0U2. On both servers I have installed xsibackup-pro 10.2.1.
When I try to backup virtual machines from one to another box (backup prog rsync or xsidiff) i get error.

My example backup command:

./xsibackup  --backup-prog=rsync --backup-point="x.x.x.x:22:/vmfs/volumes/xsinas/xsit-$( date +'%Y-%m')" --backup-type=all
 --mail-from=x@gmail.com --mail-to=x --smtp-srv=smtp.gmail.com --smtp-usr=x --smtp-pwd=x --smtp-port=465

Errors from mail report:

• [ Tue Dec 26 19:07:39 UTC 2017 ] ERROR (CLCPNVMS) details [iRedMail] error: cannot copy VMSD file details: ./xsibackup: eval: line 1: can't create /vmfs/volumes/xsinas/xsit-2017-12/iRedMail/iRedMail.vmsd: nonexistent directory

• [ Tue Dec 26 19:07:39 UTC 2017 ] ERROR (CLCPNVMX) details [iRedMail] error: cannot copy VMX file details: ./xsibackup: eval: line 1: can't create /vmfs/volumes/xsinas/xsit-2017-12/iRedMail/iRedMail.vmx: nonexistent directory

• [ Tue Dec 26 20:12:58 UTC 2017 ] ERROR (CLCPNVMX) details [Cycki] error: cannot copy VMX file details: ./xsibackup: eval: line 1: can't create /vmfs/volumes/xsinas/xsit-2017-12/Cycki/Cycki_Thin.vmx: nonexistent directory

• [ Tue Dec 26 20:12:59 UTC 2017 ] ERROR (CLCPNVMS) details [Cycki] error: cannot copy VMSD file det ails: ./xsibackup: eval: line 1: can't create /vmfs/volumes/xsinas/xsit-2017-12/Cycki/Cycki_Thin.vmsd: nonexistent directory

• [ Tue Dec 26 21:52:12 UTC 2017 ] ERROR (CLCPNVMS) details [KFD-SERVER.KFD.local] error: cannot copy VMSD file details: ./xsibackup: eval: line 1: can't create /vmfs/volumes/xsinas/xsit-2017-12/KFD-SERVER.KFD.local/KFD-SERVER.KFD.local.vmsd: nonexistent directory

• [ Tue Dec 26 21:52:12 UTC 2017 ] ERROR (CLCPNVMX) details [KFD-SERVER.KFD.local] error: cannot copy VMX file details: ./xsibackup: eval: line 1: can't create /vmfs/volumes/xsinas/xsit-2017-12/KFD-SERVER.KFD.local/KFD-SERVER.KFD.local.vmx: nonexistent directory

• [ Tue Dec 26 22:40:10 UTC 2017 ] ERROR (CLCPNVMS) details [MAC_INVEST] error: cannot copy VMSD file details: ./xsibackup: eval: line 1: can't create /vmfs/volumes/xsinas/xsit-2017-12/MAC _INVEST/MAC_INVEST.vmsd: nonexistent directory

• [ Tue Dec 26 22:40:10 UTC 2017 ] ERROR (CLCPNVMX) details [MAC_INVEST] error: cannot copy VMX file details: ./xsibackup: eval: line 1: can't create /vmfs/volumes/xsinas/xsit-2017-12/MAC_INVEST/MAC_INVEST.vmx: nonexistent directory

• [ Tue Dec 26 23:16:07 UTC 2017 ] ERROR (CLCPNVMS) details [W2K12R2] error: cannot copy VMSD file details: ./xsibackup: eval: line 1: can't create /vmfs/volumes/xsinas/xsit-2017-12/W2K12R2/W2K12R2.vmsd: nonexistent directory

• [ Tue Dec 26 23:16:07 UTC 2017 ] ERROR (CLCPNVMX) details [W2K12R2] error: cannot copy VMX file details: ./xsibackup: eval: line 1: can't create /vmfs/volumes/xsinas/xsit-2017-12/W2K12R2/W2K12R2.vmx: nonexistent directory

• [ Wed Dec 27 01:24:45 UTC 2017 ] ERROR (CLCPNVMS) details [CHR] error: cannot copy VMSD file details: ./xsibackup: eval: line 1: can't create /vmfs/volumes/xsinas/xsit-2017-12/CHR/CHR.vmsd: nonexistent directory

• [ Wed Dec 27 01:24:45 UTC 2017 ] ERROR (CLCPNVMX) details [CHR] error: cannot copy VMX file details: ./xsibackup: eval: line 1: can't create /vmfs/volumes/xsinas/xsit-2017-12/CHR/CHR.vmx: nonexistent directory
• [ Wed Dec 27 01:24:43 UTC 2017 ] WARNING (CLVMXFPA) details No .vmxf file found for CHR (6)

All directories from errors are existent on remote machine:

[root@ns3068065:~] cd /vmfs/volumes/xsinas/xsit-2017-12/CHR
[root@ns3068065:/vmfs/volumes/d868bde3-5007f8ba/xsit-2017-12/CHR]

Regards.
Damian.

#20 Re: General matters » Remote backup problem » 2017-11-13 20:32:57

Sure, i have SATA3 and SATA15K. I rename to datastore1 and datastore 2 and now efverything is working.

#21 Re: General matters » Remote backup problem » 2017-11-13 08:37:10

Renaming datastores to default datastore1 helps.

#22 General matters » Remote backup problem » 2017-11-12 21:56:15

matz
Replies: 4

Hello!

I have two esxi box. Primary=esxi 6.0U2 and secondary (backup) = esxi 6.5 dell
I try backup first one to second with backup retention. Xsidiff to remote, then xsibackup locally to xsitools deduplication repo.

On first i have in cron:


"/vmfs/volumes/datastore1/xsi-dir/xsibackup" --time="Mon 19:45|Tue 19:45|Wed 19:45|Thu 19:45|Fri 19:45|Sat 19:45|Sun 19:45" --backup-prog=onediff --backup-point="x:22:/vmfs/volumes/SAS15K" --backup-type=all --mail-from=x --mail-to=x@x.pl --smtp-srv=smtp.gmail.com --smtp-usr=x@gmail.com --smtp-pwd=x --smtp-port=465 --on-success="backupid->02" --on-error="backupid->02"

"/vmfs/volumes/datastore1/xsi-dir/xsibackup" backupid=02 --host=x --backup-prog=xsitools:z --backup-point="/vmfs/volumes/SATA3/xsit-$( date +'%Y-%m')" --backup-type=all --override=xsibakfilter  --check-repo=yes --mail-from=x --mail-to=x --smtp-srv=smtp.gmail.com --smtp-usr=x --smtp-pwd=x --smtp-port=465

First job is always success, but at second I have error:

2017-11-12T21:40:53|  [CHR_XSIBAK] CLXSITO1 error: cat: can't open '/vmfs/volumes/SATA3/xsit-2017-11/.xsitools': No such file or directory
2017-11-12T21:40:53|  sh: bad number
2017-11-12T21:40:53|  cat: can't open '/vmfs/volumes/SATA3/xsit-2017-11/.xsitools': No such file or directory
2017-11-12T21:40:53|  sh: bad number
2017-11-12T21:40:53|  cat: can't open '/vmfs/volumes/SATA3/xsit-2017-11/.xsitools': No such file or directory
2017-11-12T21:40:53|  sh: bad number
2017-11-12T21:41:07|  Excerpt

#23 General matters » Cronjob dont start - Running XSIBackup processes » 2017-07-11 14:11:43

matz
Replies: 1

Hello.

I have observed that xsi cron dont start jobs because I have running processes.
When i manually kill process cron jobs starts ok but in a few days stop with same error. (in logs i have borg repo lock error but process xsi still runing)

2017-07-06T20:00:37|  Examining borg repo [/backup/esxi_ovh]...
Adding queued files to Borg repo [/backup/esxi_ovh]:
Failed to create/acquire the lock /backup/esxi_ovh/lock (timeout).

####################################################################################
#                                                                                  #
#  (c) XSIBACKUP-PRO 9.1.8 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com   #
#                                                                                  #
####################################################################################

----------------------------------
|  Running XSIBackup processes:  |
----------------------------------
2702971 cron
3031870 cron

###########################################################

Fri 20:00:02 : WARNING

XSIBackup was launched from the cron file without user input
But another cron XSIBackup process is still running. Only one
XSIBackup process is allowed at a time per host. You may use
the --on-success and --on-error arguments to chain backups
This execution request will be ignored.

###########################################################


####################################################################################
#                                                                                  #
#  (c) XSIBACKUP-PRO 9.1.8 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com   #
#                                                                                  #
####################################################################################

----------------------------------
|  Running XSIBackup processes:  |
----------------------------------
2702971 cron
3356363 cron

###########################################################

Sat 20:00:02 : WARNING

XSIBackup was launched from the cron file without user input
But another cron XSIBackup process is still running. Only one
XSIBackup process is allowed at a time per host. You may use
the --on-success and --on-error arguments to chain backups
This execution request will be ignored.

###########################################################


####################################################################################
#                                                                                  #
#  (c) XSIBACKUP-PRO 9.1.8 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com   #
#                                                                                  #
####################################################################################

----------------------------------
|  Running XSIBackup processes:  |
----------------------------------
2702971 cron
3680276 cron

###########################################################

Sun 20:00:02 : WARNING

XSIBackup was launched from the cron file without user input
But another cron XSIBackup process is still running. Only one
XSIBackup process is allowed at a time per host. You may use
the --on-success and --on-error arguments to chain backups
This execution request will be ignored.

###########################################################


####################################################################################
#                                                                                  #
#  (c) XSIBACKUP-PRO 9.1.8 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com   #
#                                                                                  #
####################################################################################

----------------------------------
|  Running XSIBackup processes:  |
----------------------------------
2702971 cron
4010537 cron

###########################################################

Mon 20:00:02 : WARNING

XSIBackup was launched from the cron file without user input
But another cron XSIBackup process is still running. Only one
XSIBackup process is allowed at a time per host. You may use
the --on-success and --on-error arguments to chain backups
This execution request will be ignored.

###########################################################

#24 Re: General matters » Borg Backup » 2017-06-30 07:29:02

Hello!

Few questions above:

1. How can I use encrypted (with passphrase) borg repo with esxi?
2. I actually testing some nackup errors, and when i plug off cable with cron backup running in background i have error in log:

2017-06-30T05:37:34|  Examining borg repo [/backup/esxi_ovh]...
Adding queued files to Borg repo [/backup/esxi_ovh]:
packet_write_wait: Connection to 79.137.xx.xx: Broken pipe

But mail with raport was not send.

3. Restoring from xsi-pro works perfectly. I have list of my backups and I can choose. But I have a problem with archive name (i think the problem is with spaces in archive name) problem on borg side.

root@backup:~# borg list /backup/esxi_ovh/ -v
1498759850 - nsxxx.ip-137-74-1.eu - iRedMail :::  Thu, 2017-06-29 20:10:51

And then:

 borg info 1498759850 - nsxxx.ip-137-74-1.eu - iRedMail :::

I have:

borg info: error: argument ARCHIVE: "1498759850": No archive specified

I know this is a borg problem, but maybe You have solution.

P.s. In prune-borg.sh must be ssh address, something like:

ssh -o StrictHostKeyChecking=no -i /vmfs/volumes/datastore1/xsi-dir/xsibackup_id_rsa xx.xx.xx.xx "borg prune -v --list --dry-run --keep-daily=7 --keep-weekly=4 /path/to/repo"

Thank You and have a nice day!
Regards. Damian.

#25 Re: General matters » Borg Backup » 2017-06-28 17:27:40

Ok, its working!

But how I can configure backup retention or what is default backup retention policy?
Normal borg client have borg prune command.

https://borgbackup.readthedocs.io/en/st … borg-prune

And what is restore procedure from borg repo? (i found it in docs)

https://33hops.com/xsibackup-pro-restore-feature.html

Board footer