@xen-orchestra/backups 0.41.0 → 0.42.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,6 +41,7 @@ export async function exportIncrementalVm(
41
41
  fullVdisRequired = new Set(),
42
42
 
43
43
  disableBaseTags = false,
44
+ preferNbd,
44
45
  } = {}
45
46
  ) {
46
47
  // refs of VM's VDIs → base's VDIs.
@@ -88,6 +89,7 @@ export async function exportIncrementalVm(
88
89
  baseRef: baseVdi?.$ref,
89
90
  cancelToken,
90
91
  format: 'vhd',
92
+ preferNbd,
91
93
  })
92
94
  })
93
95
 
@@ -41,6 +41,7 @@ export const IncrementalXapi = class IncrementalXapiVmBackupRunner extends Abstr
41
41
 
42
42
  const deltaExport = await exportIncrementalVm(exportedVm, baseVm, {
43
43
  fullVdisRequired,
44
+ preferNbd: this._settings.preferNbd,
44
45
  })
45
46
  // since NBD is network based, if one disk use nbd , all the disk use them
46
47
  // except the suspended VDI
@@ -4,6 +4,7 @@ import { Disposable } from 'promise-toolbox'
4
4
  import { getVmBackupDir } from '../../_getVmBackupDir.mjs'
5
5
 
6
6
  import { Abstract } from './_Abstract.mjs'
7
+ import { extractIdsFromSimplePattern } from '../../extractIdsFromSimplePattern.mjs'
7
8
 
8
9
  export const AbstractRemote = class AbstractRemoteVmBackupRunner extends Abstract {
9
10
  constructor({
@@ -34,7 +35,8 @@ export const AbstractRemote = class AbstractRemoteVmBackupRunner extends Abstrac
34
35
  this._writers = writers
35
36
 
36
37
  const RemoteWriter = this._getRemoteWriter()
37
- Object.entries(remoteAdapters).forEach(([remoteId, adapter]) => {
38
+ extractIdsFromSimplePattern(job.remotes).forEach(remoteId => {
39
+ const adapter = remoteAdapters[remoteId]
38
40
  const targetSettings = {
39
41
  ...settings,
40
42
  ...allSettings[remoteId],
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/vatesfr/xen-orchestra.git"
10
10
  },
11
- "version": "0.41.0",
11
+ "version": "0.42.1",
12
12
  "engines": {
13
13
  "node": ">=14.18"
14
14
  },
@@ -28,7 +28,7 @@
28
28
  "@vates/nbd-client": "^2.0.0",
29
29
  "@vates/parse-duration": "^0.1.1",
30
30
  "@xen-orchestra/async-map": "^0.1.2",
31
- "@xen-orchestra/fs": "^4.0.1",
31
+ "@xen-orchestra/fs": "^4.1.0",
32
32
  "@xen-orchestra/log": "^0.6.0",
33
33
  "@xen-orchestra/template": "^0.1.0",
34
34
  "app-conf": "^2.3.0",
@@ -44,19 +44,19 @@
44
44
  "proper-lockfile": "^4.1.2",
45
45
  "tar": "^6.1.15",
46
46
  "uuid": "^9.0.0",
47
- "vhd-lib": "^4.5.0",
48
- "xen-api": "^1.3.5",
47
+ "vhd-lib": "^4.6.0",
48
+ "xen-api": "^1.3.6",
49
49
  "yazl": "^2.5.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "fs-extra": "^11.1.0",
53
53
  "rimraf": "^5.0.1",
54
- "sinon": "^15.0.1",
54
+ "sinon": "^16.0.0",
55
55
  "test": "^3.2.1",
56
56
  "tmp": "^0.2.1"
57
57
  },
58
58
  "peerDependencies": {
59
- "@xen-orchestra/xapi": "^3.0.1"
59
+ "@xen-orchestra/xapi": "^3.1.0"
60
60
  },
61
61
  "license": "AGPL-3.0-or-later",
62
62
  "author": {