Add healthcheck and backup labels #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "healthcheck-backups"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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!)
@ -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}"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?
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.
@ -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"mvmight be safer thancphere:Say we perform backup->restore->backup, and sqlite3 fails on the last backup.
If we've used
cpduring restore, backupbot still sees the old backup and treats it as a new backupIf we've used
mv, backupbot sees a missing file and (hopefully) reports the error.good call I think
mvmakes more sense here tooat the very least, the backup.sqlite is just sitting around taking up space and is not needed
I think the README can also be updated to
per https://docs.coopcloud.tech/abra/recipes/#status-overall-score since we're only missing integration testing following this PR.
@amras incorporated your code review in the additional two commits. any other thoughts?