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

    ZTP Restore XOA From Backup

    Scheduled Pinned Locked Moved Xen Orchestra
    featureplanned
    6 Posts 4 Posters 1.0k 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.
    • B Offline
      bnerickson
      last edited by marcungeschikts

      Hello,

      I'm working on a provisioning template to rebuild my XOA server without any sort of user interaction. A few questions:

      1. Assume XOA and all plugins are installed. When restoring from backup, is it ONLY necessary to restore the "XO config" in order to bring XOA back into service 100%?
      2. If not, what else needs to be backed up and restored?
      3. Using the xo-cli to restore the config from backup, may I presume the following command is correct and the data.json file is the config file I want to restore?
      xo-cli xo.importConfig @=/tmp/config_backup/xo-config-backups/2f26913f-81a5-4fbd-af86-ce83f90e525b/20220331T070000Z/data.json
      

      Just to be clear, I'm not talking about restoring any XCP-NG hosts. I'm specifically talking about restoring XOA on a new VM.

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi,

        1. When you deploy a fresh XOA, it's not registered. But if you import your backup config into it, this should do everything needed to be ready to go for updates
        2. So after importing the configuration, you need to run the updater multiple times.
        B 1 Reply Last reply Reply Quote 0
        • B Offline
          bnerickson @olivierlambert
          last edited by

          Thanks, @olivierlambert . It looks like the restore mostly worked. There was one main issue:

          After I restored the configuration, all of the plugins I had had to manually configure when I first installed XOA (auth-ldap, transport-email, and usage-report) were all disabled. When I tried to re-enable them, they failed with the "plugin not configured" error. However, when I expanded their configuration, it was still present thanks to the restore. What I had to do was manually change an arbitrary field in each plugin so that I could click the "Save Configuration" button. Then I was able to re-enable the plugin. Probably a bug I should report?

          pdoniasP 1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Hmm let me ping @julien-f and/or @pdonias

            I think configuration export should also save plugin configuration, if it's not the case it's indeed a missing feature 🙂

            1 Reply Last reply Reply Quote 0
            • pdoniasP Offline
              pdonias Vates 🪐 XO Team @bnerickson
              last edited by

              Hi @bnerickson, indeed, the configurations are correctly imported but plugins aren't automatically "configured" when you import a config. We'll improve that, thanks for the report 🙂

              1 Reply Last reply Reply Quote 2
              • M Offline
                markxc
                last edited by

                on my side importing backup config in a new XO installation worked (Using Webinterface). (i build from sources). Only thing wich bugs are backup jobs - i had to open and resubmit every backup job to get them work...
                br

                Mark

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