Backup-reports plugin logic
-
- Mail can't be empty, so it not optional.
plugin.configure { "id": "backup-reports", "configuration": { "toMails": [] } } { "code": 10, "data": { "errors": [ { "instancePath": "/toMails", "schemaPath": "#/properties/toMails/minItems", "keyword": "minItems", "params": { "limit": 1 }, "message": "must NOT have fewer than 1 items" } ] }, "message": "invalid parameters", "name": "XoError", "stack": "XoError: invalid parameters at invalidParameters (/opt/xo/xo-builds/xen-orchestra-202412231012/packages/xo-common/api-errors.js:26:11) at default._configurePlugin (file:///opt/xo/xo-builds/xen-orchestra-202412231012/packages/xo-server/src/xo-mixins/plugins.mjs:175:13) at default.configurePlugin (file:///opt/xo/xo-builds/xen-orchestra-202412231012/packages/xo-server/src/xo-mixins/plugins.mjs:199:16) at Xo.configure (file:///opt/xo/xo-builds/xen-orchestra-202412231012/packages/xo-server/src/api/plugin.mjs:12:3) at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202412231012/@vates/task/index.js:172:22) at Task.run (/opt/xo/xo-builds/xen-orchestra-202412231012/@vates/task/index.js:156:20) at Api.#callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202412231012/packages/xo-server/src/xo-mixins/api.mjs:469:18)" }
- Plugin settings is ignored at Delta backups. Only mails specified at job will get notification. I removed our support email from backup jobs and getting only personal notifications.
But at metadata backup this setting works. Emails will be sent according to plugin settings.