XO Tasks - backups just pilling up
-
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
-
P poddingue marked this topic as a question
-
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?
-
Looks like it clears after 30 days... but not the XO Config Cloud backup... This is from XOA..

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

-
as for how long they stay, i been clearing my old ones out manually, so not sure.
-
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.keepandtasks.gc.backupKeepDurationin 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.
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