From ebc93e6e038055d7b177ed4c160a74ec2b9ac217 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 5 Dec 2025 02:00:49 +0000 Subject: [PATCH] chore: backup infrastructure configurations [skip ci] --- consul_backup/metadata.json | 2 +- .../nomad/postgres/members/pg-odroid6 | 2 +- .../nomad/postgres/members/pg-odroid7 | 2 +- .../nomad/postgres/members/pg-odroid8 | 2 +- consul_backup/nomad/postgres/members/pg-opti1 | 2 +- consul_backup/nomad/postgres/status | 2 +- nomad_backup/garage-webui.hcl | 108 +++++++++++++ nomad_backup/garage.hcl | 36 +---- nomad_backup/garage_backup.hcl | 147 ++++++++++++++++++ 9 files changed, 268 insertions(+), 35 deletions(-) create mode 100644 nomad_backup/garage-webui.hcl create mode 100644 nomad_backup/garage_backup.hcl diff --git a/consul_backup/metadata.json b/consul_backup/metadata.json index 8ba88cd..ea8bfc6 100644 --- a/consul_backup/metadata.json +++ b/consul_backup/metadata.json @@ -1,5 +1,5 @@ { - "backup_timestamp": "2025-12-04T02:00:49.445063", + "backup_timestamp": "2025-12-05T02:00:49.057253", "total_keys": 79, "successful_backups": 74, "failed_backups": 5, diff --git a/consul_backup/nomad/postgres/members/pg-odroid6 b/consul_backup/nomad/postgres/members/pg-odroid6 index b788503..96b9e27 100644 --- a/consul_backup/nomad/postgres/members/pg-odroid6 +++ b/consul_backup/nomad/postgres/members/pg-odroid6 @@ -1 +1 @@ -{"conn_url":"postgres://192.168.4.226:5432/postgres","api_url":"http://192.168.4.226:8008/patroni","state":"running","role":"replica","version":"4.0.4","xlog_location":599829803936,"replication_state":"streaming","timeline":248} \ No newline at end of file +{"conn_url":"postgres://192.168.4.226:5432/postgres","api_url":"http://192.168.4.226:8008/patroni","state":"running","role":"replica","version":"4.0.4","xlog_location":600968407064,"replication_state":"streaming","timeline":248} \ No newline at end of file diff --git a/consul_backup/nomad/postgres/members/pg-odroid7 b/consul_backup/nomad/postgres/members/pg-odroid7 index 3be4658..685bbce 100644 --- a/consul_backup/nomad/postgres/members/pg-odroid7 +++ b/consul_backup/nomad/postgres/members/pg-odroid7 @@ -1 +1 @@ -{"conn_url":"postgres://192.168.4.227:5432/postgres","api_url":"http://192.168.4.227:8008/patroni","state":"running","role":"replica","version":"4.0.4","xlog_location":599841055992,"replication_state":"streaming","timeline":248} \ No newline at end of file +{"conn_url":"postgres://192.168.4.227:5432/postgres","api_url":"http://192.168.4.227:8008/patroni","state":"running","role":"replica","version":"4.0.4","xlog_location":600979325184,"replication_state":"streaming","timeline":248} \ No newline at end of file diff --git a/consul_backup/nomad/postgres/members/pg-odroid8 b/consul_backup/nomad/postgres/members/pg-odroid8 index 5c2c35b..b04f32f 100644 --- a/consul_backup/nomad/postgres/members/pg-odroid8 +++ b/consul_backup/nomad/postgres/members/pg-odroid8 @@ -1 +1 @@ -{"conn_url":"postgres://192.168.4.228:5432/postgres","api_url":"http://192.168.4.228:8008/patroni","state":"running","role":"primary","version":"4.0.4","xlog_location":599839997952,"timeline":248} \ No newline at end of file +{"conn_url":"postgres://192.168.4.228:5432/postgres","api_url":"http://192.168.4.228:8008/patroni","state":"running","role":"primary","version":"4.0.4","xlog_location":600979325184,"timeline":248} \ No newline at end of file diff --git a/consul_backup/nomad/postgres/members/pg-opti1 b/consul_backup/nomad/postgres/members/pg-opti1 index e179268..416e8e3 100644 --- a/consul_backup/nomad/postgres/members/pg-opti1 +++ b/consul_backup/nomad/postgres/members/pg-opti1 @@ -1 +1 @@ -{"conn_url":"postgres://192.168.4.36:5432/postgres","api_url":"http://192.168.4.36:8008/patroni","state":"running","role":"replica","version":"4.0.4","xlog_location":599829831680,"replication_state":"streaming","timeline":248} \ No newline at end of file +{"conn_url":"postgres://192.168.4.36:5432/postgres","api_url":"http://192.168.4.36:8008/patroni","state":"running","role":"replica","version":"4.0.4","xlog_location":600969755376,"replication_state":"streaming","timeline":248} \ No newline at end of file diff --git a/consul_backup/nomad/postgres/status b/consul_backup/nomad/postgres/status index 8bf0549..a6c65e3 100644 --- a/consul_backup/nomad/postgres/status +++ b/consul_backup/nomad/postgres/status @@ -1 +1 @@ -{"optime":599839997952,"slots":{"pg_odroid6":599839997952,"pg_odroid7":599839997952,"pg_opti1":599839997952,"pg_odroid8":599839997952},"retain_slots":["pg_odroid6","pg_odroid7","pg_odroid8","pg_opti1"]} \ No newline at end of file +{"optime":600979325184,"slots":{"pg_odroid6":600979325184,"pg_odroid7":600979325184,"pg_opti1":600979325184,"pg_odroid8":600979325184},"retain_slots":["pg_odroid6","pg_odroid7","pg_odroid8","pg_opti1"]} \ No newline at end of file diff --git a/nomad_backup/garage-webui.hcl b/nomad_backup/garage-webui.hcl new file mode 100644 index 0000000..e7900bb --- /dev/null +++ b/nomad_backup/garage-webui.hcl @@ -0,0 +1,108 @@ +job "garage-webui" { + datacenters = ["dc1"] + type = "service" + + group "webui" { + count = 1 + + network { + port "webui" { + static = 3909 + } + } + + task "webui" { + driver = "docker" + + config { + image = "khairul169/garage-webui:latest" + ports = ["webui"] + + volumes = [ + "local/garage.toml:/etc/garage.toml:ro" + ] + } + + # Copy the garage.toml for read-only access + template { + data = <