Add healthcheck and backup labels #5

Manually merged
amras merged 3 commits from healthcheck-backups into main 2026-05-01 11:10:13 +00:00
Owner

moving this into its own PR, as suggested here: #1 (comment)

tested the backup/restore flow locally and seems to be working (but a second test would always be welcome!)

moving this into its own PR, as suggested here: https://git.coopcloud.tech/coop-cloud/mumble/pulls/1#issuecomment-33149 tested the backup/restore flow locally and seems to be working (but a second test would always be welcome!)
notplants added 1 commit 2026-04-28 17:18:27 +00:00
add healthcheck and backup labels
Some checks failed
continuous-integration/drone/pr Build is failing
e75aba093d
amras requested changes 2026-04-30 09:30:02 +00:00
@ -22,6 +28,11 @@ services:
- "traefik.udp.routers.${STACK_NAME}.service=${STACK_NAME}-udp-service"
- "traefik.udp.services.${STACK_NAME}-udp-service.loadbalancer.server.port=64738"
- "coop-cloud.${STACK_NAME}.version=0.1.0+v1.6.870-0"
- "backupbot.backup=${ENABLE_BACKUPS:-true}"
Owner

ENABLE_BACKUPS is not specified in .env.sample - probably should be if it's used here.

Also, I'm unclear why we don't hardcode "backupbot.backup=true". What are the usecases where we want backups to be disabled?

ENABLE_BACKUPS is not specified in .env.sample - probably should be if it's used here. Also, I'm unclear why we don't hardcode "backupbot.backup=true". What are the usecases where we want backups to be disabled?
Author
Owner

I can't really think of a usecase either, but it is the pattern used in most co-op cloud recipes. Perhaps just to give the operator the possibility, maybe if they had some type of especially sensitive data in one application? Could be a good question for matrix. But it is the common pattern, for example in traefik and authentik.

I can't really think of a usecase either, but it is the pattern used in most co-op cloud recipes. Perhaps just to give the operator the possibility, maybe if they had some type of especially sensitive data in one application? Could be a good question for matrix. But it is the common pattern, for example in traefik and authentik.
compose.yml Outdated
@ -25,0 +32,4 @@
- 'backupbot.backup.pre-hook=sqlite3 /data/mumble-server.sqlite ".backup /data/backup.sqlite"'
- "backupbot.backup.post-hook=rm -f /data/backup.sqlite"
- "backupbot.backup.volumes.mumble_data.path=backup.sqlite"
- "backupbot.restore.post-hook=cp /data/backup.sqlite /data/mumble-server.sqlite"
Owner

mv might be safer than cp here:

Say we perform backup->restore->backup, and sqlite3 fails on the last backup.
If we've used cp during restore, backupbot still sees the old backup and treats it as a new backup
If we've used mv, backupbot sees a missing file and (hopefully) reports the error.

`mv` might be safer than `cp` here: Say we perform backup->restore->backup, and sqlite3 fails on the last backup. If we've used `cp` during restore, backupbot still sees the old backup and treats it as a new backup If we've used `mv`, backupbot sees a missing file and (hopefully) reports the error.
Author
Owner

good call I think mv makes more sense here too

at the very least, the backup.sqlite is just sitting around taking up space and is not needed

good call I think `mv` makes more sense here too at the very least, the backup.sqlite is just sitting around taking up space and is not needed
Owner

I think the README can also be updated to

Status: 3, stable

per https://docs.coopcloud.tech/abra/recipes/#status-overall-score since we're only missing integration testing following this PR.

I think the README can also be updated to > Status: 3, stable per https://docs.coopcloud.tech/abra/recipes/#status-overall-score since we're only missing integration testing following this PR.
notplants added 2 commits 2026-04-30 15:04:16 +00:00
Author
Owner

@amras incorporated your code review in the additional two commits. any other thoughts?

@amras incorporated your code review in the additional two commits. any other thoughts?
amras manually merged commit 608f5d805a into main 2026-05-01 11:10:13 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coop-cloud/mumble#5
No description provided.