aboutsummaryrefslogtreecommitdiff
path: root/cluster
diff options
context:
space:
mode:
Diffstat (limited to 'cluster')
-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"