Prevent overlapping backup executions #105
Open
opened 2026-11-29 06:06:43 +00:00 by ChasquiLabo
·
0 comments
No Branch/Tag Specified
main
build_for_arm
renovate/docker-29.x
feature/makeDeleteDefault
fix-download-oom
restic-exporter
cmd-setup-restic-s3
prom-mon
feature/dockerfile
bb2-classic
feature/selective_paths
list
enable-label
backupbot_revolution
backup_volumes
multi_path
2.5.2+2.5.0
2.5.0+2.5.0
2.4.0+2.4.0
2.3.0+2.3.0-beta
2.2.0+2.2.1-beta
2.1.0+2.2.0-beta
2.0.1+2.1.1-beta
1.0.0+2.0.0-beta
0.2.0+1.0.0
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze (Born Deleuze)
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
dannygroenewegen (Danny Groenewegen)
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
hex (Josh Dukes)
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1 (p4u1)
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting (stevensting)
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/backup-bot-two#105
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
During a recent incident in our production Co-op Cloud infrastructure, we found three concurrent Backup Bot Two processes running against the same Restic repository, each started by the daily cron schedule.
Due to a network performance issue, the initial backup took longer than 24 hours, but subsequent scheduled backups were started while the previous ones were still running.
This resulted in increased CPU, memory, disk and network usage.
Current behaviour
Neither
cronjob.shnor thecreate()function inbackupbot.pyappears to implement a mechanism to prevent overlapping backups.Concurrent executions may also interfere with shared resources, such as database dumps, the
/secrets/directory and/tmp/backup.log.Proposed solution
fcntl.flock.swarm.cronjob.skip-running=truein the optional swarm-cronjob configuration.This would protect both scheduled and manually triggered backups without changing Restic's concurrent repository access behaviour.
Environment
We would be happy to contribute a patch and test it on our infrastructure.
Issue made using LLM Chatgpt