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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2021-09-06 20:34:34

arniworx
Member
Registered: 2021-09-06
Posts: 4

Backup Order

hi!
in which order are the VMs processed, if i specify "--backup-type=running" or "VMs(RUNNING)" ?
thanks in advance
arni

Last edited by arniworx (2021-09-07 08:30:09)

Offline

#2 2021-09-07 10:13:44

admin
Administrator
Registered: 2017-04-21
Posts: 2,057

Re: Backup Order

The order they are in the inventory file:

/etc/vmware/hostd/vmInventory.xml

Offline

#3 2021-09-07 10:27:07

arniworx
Member
Registered: 2021-09-06
Posts: 4

Re: Backup Order

ok, thank you!
do you know a (ESXi) way to reorder the VMs?

Offline

#4 2021-09-07 12:53:38

admin
Administrator
Registered: 2017-04-21
Posts: 2,057

Re: Backup Order

If you believe you can't solve your issue any other way (custom selection, REGEXP, multiple jobs), you can always reorder the inventory file vmInventory.xml manually.

Offline

#5 2021-09-07 13:29:23

arniworx
Member
Registered: 2021-09-06
Posts: 4

Re: Backup Order

yes, i think its better to run multiple jobs.
if the

<ConfigEntry id="0001">

is referenced elsewhere, i might run into trouble.
thank you very much and keep up the good work.
greetz
arni

Offline

#6 2021-09-07 14:32:21

admin
Administrator
Registered: 2017-04-21
Posts: 2,057

Re: Backup Order

You just have to create compounded jobs, per instance starting at 900..
Job 901 comprising jobs 101, 102 and 103 would be something as simple as:

101
102
103

Or with absolute references

/scratch/XSI/XSIBackup-DC/etc/jobs/101
/scratch/XSI/XSIBackup-DC/etc/jobs/102
/scratch/XSI/XSIBackup-DC/etc/jobs/103

Then invoke job 901 from the cron

You can off course combine them depending on the return code of the job

/scratch/XSI/XSIBackup-DC/etc/jobs/101 && /scratch/XSI/XSIBackup-DC/etc/jobs/102

The above example would run job 102 in the event that the return code from job 101 would be 0

Offline

#7 2021-09-07 17:58:41

arniworx
Member
Registered: 2021-09-06
Posts: 4

Re: Backup Order

now i have something to play with ;-)
thank you!

Offline

#8 2021-09-08 09:59:21

admin
Administrator
Registered: 2017-04-21
Posts: 2,057

Re: Backup Order

(c)XSIBackup binary is just like any other Linux binary, you can apply any flow control technique or programming available in the Shell.

Control flow examples

A job file, as created by the GUI or by the --save-job=NNN argument, is just the simplest form of a job packaged in a bash file with the output redirected to the main xsibackup.log file. You can of course create any kind of bash script that you want containing calls to jobs. We recommend that you leave jobs packaged as they are created just to keep things ordered in an independent file.

Offline

Board footer