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

    Fetch backup information

    Scheduled Pinned Locked Moved REST API
    11 Posts 5 Posters 1.4k Views 5 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.
    • olivierlambertO Offline
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      Question for @julien-f

      1 Reply Last reply Reply Quote 0
      • K Offline
        KPS Top contributor
        last edited by

        You can get the backups from the logs:

        /rest/v0/backup/logs?fields=tasks

        R 1 Reply Last reply Reply Quote 2
        • R Offline
          rtjdamen @KPS
          last edited by

          @KPS thanks, this is indeed the logging but is it possible to fetch the current recoverypoints that are in the repository?

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

            What do you mean by "fecthing recovery points" exactly?

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              rtjdamen @olivierlambert
              last edited by

              @olivierlambert Sorry, we would like to show our customers the backups we have available for them, they need this for there iso purpose. So just a list we can show on a per vm basis.

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                billcouper @rtjdamen
                last edited by billcouper

                @rtjdamen I'm doing something similar using the "xo-cli" utility on the XO server directly. I run this command remotely and it returns JSON array. Using this output I can identify which restore points exist for each VM

                xo-cli backupNg.listVmBackups --json remotes="json:'[`"02fcd7e4-7172-46ec-a43f-2eb79fd00009`",`"f2c432dc-eddb-41bc-828f-67121529904c`"]'"
                

                Note that I am limiting the output to only show me backups that exist in specific "remotes" but you may not need to do this.

                I am interested if there is a REST API call that produces the same output? @julien-f

                R julien-fJ 2 Replies Last reply Reply Quote 0
                • R Offline
                  rtjdamen @billcouper
                  last edited by

                  @billcouper yes indeed i think that is what we need. Hope this can be added to the api.

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

                    @julien-f is it difficult to add to the REST API?

                    1 Reply Last reply Reply Quote 0
                    • julien-fJ Offline
                      julien-f Vates 🪐 Co-Founder XO Team @billcouper
                      last edited by julien-f

                      @billcouper This is indeed not available at this time.

                      Currently we have the following backup routes:

                      • backup/jobs/:type: collections of backup jobs, grouped by type (metadata, mirror, vm)
                      • backup/logs: collections of backup run logs (for all types)

                      Any idea where we should put the collection of the VM backup files?

                      R 1 Reply Last reply Reply Quote 1
                      • R Offline
                        rtjdamen @julien-f
                        last edited by

                        @julien-f maybe there can we some recoverypoint endpoint? or remotes?

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post