@xen-orchestra/backups 0.38.0 → 0.38.2

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.
@@ -39,7 +39,18 @@ exports.AbstractRemote = class AbstractRemoteVmBackupRunner extends Abstract {
39
39
  ...settings,
40
40
  ...allSettings[remoteId],
41
41
  }
42
- writers.add(new RemoteWriter({ adapter, config, healthCheckSr, job, vmUuid, remoteId, settings: targetSettings }))
42
+ writers.add(
43
+ new RemoteWriter({
44
+ adapter,
45
+ config,
46
+ healthCheckSr,
47
+ job,
48
+ scheduleId: schedule.id,
49
+ vmUuid,
50
+ remoteId,
51
+ settings: targetSettings,
52
+ })
53
+ )
43
54
  })
44
55
  }
45
56
 
@@ -80,7 +80,18 @@ class AbstractXapiVmBackupRunner extends Abstract {
80
80
  ...allSettings[remoteId],
81
81
  }
82
82
  if (targetSettings.exportRetention !== 0) {
83
- writers.add(new BackupWriter({ adapter, config, healthCheckSr, job, vmUuid: vm.uuid, remoteId, settings: targetSettings }))
83
+ writers.add(
84
+ new BackupWriter({
85
+ adapter,
86
+ config,
87
+ healthCheckSr,
88
+ job,
89
+ scheduleId: schedule.id,
90
+ vmUuid: vm.uuid,
91
+ remoteId,
92
+ settings: targetSettings,
93
+ })
94
+ )
84
95
  }
85
96
  })
86
97
  srs.forEach(sr => {
@@ -89,7 +100,17 @@ class AbstractXapiVmBackupRunner extends Abstract {
89
100
  ...allSettings[sr.uuid],
90
101
  }
91
102
  if (targetSettings.copyRetention !== 0) {
92
- writers.add(new ReplicationWriter({ config, healthCheckSr, job, vmUuid: vm.uuid, sr, settings: targetSettings}))
103
+ writers.add(
104
+ new ReplicationWriter({
105
+ config,
106
+ healthCheckSr,
107
+ job,
108
+ scheduleId: schedule.id,
109
+ vmUuid: vm.uuid,
110
+ sr,
111
+ settings: targetSettings,
112
+ })
113
+ )
93
114
  }
94
115
  })
95
116
  }
@@ -70,7 +70,7 @@ exports.MixinRemoteWriter = (BaseClass = Object) =>
70
70
  // add a random suffix to avoid collision in case multiple tasks are created at the same second
71
71
  Math.random().toString(36).slice(2)
72
72
 
73
- await handler.outputFile(taskFile, this._backup.vm.uuid)
73
+ await handler.outputFile(taskFile, this._vmUuid)
74
74
  const remotePath = handler.getRealPath()
75
75
  await MergeWorker.run(remotePath)
76
76
  }
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.38.0",
11
+ "version": "0.38.2",
12
12
  "engines": {
13
13
  "node": ">=14.6"
14
14
  },