From 96f5e04583f526567ec6bb4b12e33be081ed2455 Mon Sep 17 00:00:00 2001 From: wizzdom Date: Wed, 11 Dec 2024 14:32:00 +0000 Subject: [PATCH] backup the correct db --- jobs/socs/mps-thecollegeview-backup.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/socs/mps-thecollegeview-backup.hcl b/jobs/socs/mps-thecollegeview-backup.hcl index f3a9f6d..434cd9a 100644 --- a/jobs/socs/mps-thecollegeview-backup.hcl +++ b/jobs/socs/mps-thecollegeview-backup.hcl @@ -28,7 +28,7 @@ alloc_id=$(nomad job status mps-thecollegeview | grep running | tail -n 1 | cut job_name=$(echo ${NOMAD_JOB_NAME} | cut -d "/" -f 1) -nomad alloc exec -task rbwiki-db $alloc_id mariadb-dump -u {{ key "mps/thecollegeview/db/username" }} -p'{{ key "mps/thecollegeview/db/password"}}' {{ key "mps/thecollegeview/db/name" }} > "${file}" +nomad alloc exec -task tcv-db $alloc_id mariadb-dump -u {{ key "mps/thecollegeview/db/username" }} -p'{{ key "mps/thecollegeview/db/password"}}' {{ key "mps/thecollegeview/db/name" }} > "${file}" find /storage/backups/nomad/mps-thecollegeview/mysql/tcv-mysql* -ctime +3 -exec rm {} \; || true