From aac2019d2757b30d2f318d9a8f98b4e77ba42076 Mon Sep 17 00:00:00 2001 From: ADRN Date: Thu, 26 Sep 2024 19:37:02 +0200 Subject: =?UTF-8?q?modif=20de=20Synapse=20parce=20que=20=C3=A7a=20buguait?= =?UTF-8?q?=20+=20update=20Matrix=20syncv3=20to=20v0.99.16?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cluster/prod/app/backup/README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cluster/prod/app/backup/README.md (limited to 'cluster/prod/app/backup') diff --git a/cluster/prod/app/backup/README.md b/cluster/prod/app/backup/README.md new file mode 100644 index 0000000..62101d8 --- /dev/null +++ b/cluster/prod/app/backup/README.md @@ -0,0 +1,32 @@ +## Pour remonter locement un backup de PSQL fait par Nomad (backup-weekly.hcl) + +```bash +export AWS_BUCKET=backups-pgbasebackup +export AWS_ENDPOINT=s3.deuxfleurs.shirokumo.net +export AWS_ACCESS_KEY_ID=$(consul kv get "secrets/postgres/backup/aws_access_key_id") +export AWS_SECRET_ACCESS_KEY=$(consul kv get secrets/postgres/backup/aws_secret_access_key) +export CRYPT_PUBLIC_KEY=$(consul kv get secrets/postgres/backup/crypt_public_key) +``` + +Et voilĂ  le travail : + +```bash +$ aws s3 --endpoint https://$AWS_ENDPOINT ls +2022-04-14 17:00:50 backups-pgbasebackup + +$ aws s3 --endpoint https://$AWS_ENDPOINT ls s3://backups-pgbasebackup + PRE 2024-07-28 00:00:36.140539/ + PRE 2024-08-04 00:00:21.291551/ + PRE 2024-08-11 00:00:26.589762/ + PRE 2024-08-18 00:00:40.873939/ + PRE 2024-08-25 01:03:54.672763/ + PRE 2024-09-01 00:00:20.019605/ + PRE 2024-09-08 00:00:16.969740/ + PRE 2024-09-15 00:00:37.951459/ + PRE 2024-09-22 00:00:21.030452/ + +$ aws s3 --endpoint https://$AWS_ENDPOINT ls "s3://backups-pgbasebackup/2024-09-22 00:00:21.030452/" +2024-09-22 03:23:28 623490 backup_manifest +2024-09-22 03:25:32 6037121487 base.tar.gz +2024-09-22 03:25:33 19948939 pg_wal.tar.gz +``` -- cgit v1.2.3