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

    XO Tasks - backups just pilling up

    Scheduled Pinned Locked Moved Unsolved Management
    5 Posts 3 Posters 133 Views 3 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.
    • marcoiM
      marcoi
      last edited by

      Not sure if this is normal or what. but under Xo Tasks. when i clear the filter i see a lot of tasks from backups. i just delete them but not sure why they are just hanging around.

      Backup seem to be normally working.
      Xen Orchestra, commit 2bd4e
      Master, commit 989cd

      image.jpeg

      poddingueP 1 Reply Last reply
      Reply Quote 0
      • poddingueP poddingue marked this topic as a question
      • poddingueP
        poddingue Vates 🪐 @marcoi
        last edited by

        From your screenshot they all finished green, so this doesn't look like the tasks stuck at 97% in https://xcp-ng.org/forum/topic/10857 a while back.

        I don't know how long XO is meant to keep finished backup tasks in that list, or whether they're supposed to clear on their own.

        Do they go away after an xo-server restart, or do they come back?

        acebmxerA 1 Reply Last reply
        Reply Quote 0
        • acebmxerA
          acebmxer @poddingue
          last edited by acebmxer

          @poddingue

          Looks like it clears after 30 days... but not the XO Config Cloud backup... This is from XOA..

          Screenshot_20261001_054141.png

          Just filtered for backup... Oldest is from 7-19-26 oldest backup job 8-31-26.

          Screenshot_20261001_053839.png

          1 Reply Last reply
          Reply Quote 1
          • marcoiM
            marcoi
            last edited by

            as for how long they stay, i been clearing my old ones out manually, so not sure.

            poddingueP 1 Reply Last reply
            Reply Quote 0
            • poddingueP
              poddingue Vates 🪐 @marcoi
              last edited by

              I didn't know, so I went and looked at the code. XO prunes that list in a cleanup step: backup runs are kept for 31 days, and other tasks are kept by count, the newest 1000 (https://github.com/vatesfr/xen-orchestra/blob/b59c8f3d20954aa1d72e92c1e8f2db635d74fcba/@xen-orchestra/mixins/Tasks.mjs#L119-L127).

              You can change both with tasks.gc.keep and tasks.gc.backupKeepDuration in the xo-server config.

              As far as I can tell the cleanup runs when xo-server starts, not on a timer, so a long-running XO can collect quite a few before the next restart.

              My guess for the Cloud Backup entries @acebmxer still sees after 30 days is that they're kept by count rather than by age.

              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