diff options
author | ADRN <adrien@luxeylab.net> | 2024-09-26 18:58:51 +0200 |
---|---|---|
committer | ADRN <adrien@luxeylab.net> | 2024-09-26 18:58:51 +0200 |
commit | fabf31a7205163aa55e001b58e7cc08c7c3eeb52 (patch) | |
tree | a4c8ced9356cd6039399757608d4136b176ccc32 /cluster/prod/app/backup/build | |
parent | c044078a6e15b90dd4e59021b2196997cbdfe689 (diff) | |
download | nixcfg-fabf31a7205163aa55e001b58e7cc08c7c3eeb52.tar.gz nixcfg-fabf31a7205163aa55e001b58e7cc08c7c3eeb52.zip |
update Synapse to v1.104.0 & Riot to v1.11.78
Diffstat (limited to 'cluster/prod/app/backup/build')
-rwxr-xr-x | cluster/prod/app/backup/build/backup-psql/backup-psql.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cluster/prod/app/backup/build/backup-psql/backup-psql.py b/cluster/prod/app/backup/build/backup-psql/backup-psql.py index 291cf50..a3a5b5f 100755 --- a/cluster/prod/app/backup/build/backup-psql/backup-psql.py +++ b/cluster/prod/app/backup/build/backup-psql/backup-psql.py @@ -44,6 +44,8 @@ if not client.bucket_exists(bucket): abort(f"Bucket {bucket} does not exist or its access is forbidden, aborting") # Perform the backup locally +# Via command-line: +# pg_basebackup --host=localhost --username=$PSQL_USER --pgdata=. --format=tar --wal-method=stream --gzip --compress=6 --progress --max-rate=5M try: ret = subprocess.run(["pg_basebackup", f"--host={psql_host}", |