aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/backup
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-05-16 15:39:36 +0200
committerAlex Auvolat <alex@adnab.me>2023-05-16 15:39:36 +0200
commitefd5ec33230027ed0fd3bb2012fe50110cdbf809 (patch)
treece983350017a7d108a9fdcaab5bcf542c22d21e2 /cluster/prod/app/backup
parent8a75be4d43fb83de2737c18a314e2602c775f193 (diff)
downloadnixcfg-efd5ec33230027ed0fd3bb2012fe50110cdbf809.tar.gz
nixcfg-efd5ec33230027ed0fd3bb2012fe50110cdbf809.zip
Remove plume backup job (not usefull anymore)
Diffstat (limited to 'cluster/prod/app/backup')
-rw-r--r--cluster/prod/app/backup/deploy/backup-daily.hcl46
1 files changed, 0 insertions, 46 deletions
diff --git a/cluster/prod/app/backup/deploy/backup-daily.hcl b/cluster/prod/app/backup/deploy/backup-daily.hcl
index a7a3dcf..aa3937f 100644
--- a/cluster/prod/app/backup/deploy/backup-daily.hcl
+++ b/cluster/prod/app/backup/deploy/backup-daily.hcl
@@ -56,52 +56,6 @@ EOH
}
}
- group "backup-plume" {
- constraint {
- attribute = "${attr.unique.hostname}"
- operator = "="
- value = "dahlia"
- }
-
- task "main" {
- driver = "docker"
-
- config {
- image = "restic/restic:0.14.0"
- entrypoint = [ "/bin/sh", "-c" ]
- args = [ "restic backup /plume && restic forget --group-by paths --keep-within 1m1d --keep-within-weekly 3m --keep-within-monthly 1y && restic prune --max-unused 50% --max-repack-size 2G && restic check" ]
- volumes = [
- "/mnt/ssd/plume/media:/plume"
- ]
- }
-
- template {
- data = <<EOH
-AWS_ACCESS_KEY_ID={{ key "secrets/plume/backup_aws_access_key_id" }}
-AWS_SECRET_ACCESS_KEY={{ key "secrets/plume/backup_aws_secret_access_key" }}
-RESTIC_REPOSITORY={{ key "secrets/plume/backup_restic_repository" }}
-RESTIC_PASSWORD={{ key "secrets/plume/backup_restic_password" }}
-EOH
-
- destination = "secrets/env_vars"
- env = true
- }
-
- resources {
- cpu = 500
- memory = 100
- memory_max = 1000
- }
-
- restart {
- attempts = 2
- interval = "30m"
- delay = "15s"
- mode = "fail"
- }
- }
- }
-
group "backup-consul" {
task "consul-kv-export" {
driver = "docker"