aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/backup/build/backup-psql
diff options
context:
space:
mode:
Diffstat (limited to 'cluster/prod/app/backup/build/backup-psql')
-rwxr-xr-xcluster/prod/app/backup/build/backup-psql/backup-psql.py2
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}",