XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Backup-reports plugin logic

    Scheduled Pinned Locked Moved Backup
    1 Posts 1 Posters 72 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tristis OrisT Offline
      Tristis Oris Top contributor
      last edited by

      • Mail can't be empty, so it not optional.

      f161fc9c-0137-4285-a88f-a97b049f6e46-image.png

      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.
        0b9d80cc-39c9-445f-a490-16aece94b8bb-image.png

      But at metadata backup this setting works. Emails will be sent according to plugin settings.
      7f22ef9a-11c7-432e-9446-fbb451a2b587-image.png

      1 Reply Last reply Reply Quote 0
      • First post
        Last post