Skip to content

Commit 62b009b

Browse files
authored
FIX: pg_basebackup parameter in take-database-backup (#611)
take-database-backup tries to use pg_baseback --xlog parameter which was remove in postgres >=10.
1 parent 727dad5 commit 62b009b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

templates/postgres.10.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ run:
155155
#!/bin/bash
156156
ID=db-$(date +%F_%T)
157157
FILENAME=/shared/postgres_backup/$ID.tar.gz
158-
pg_basebackup --format=tar --pgdata=- --xlog --gzip --label=$ID > $FILENAME
158+
pg_basebackup --format=tar --pgdata=- --wal-method=fetch --gzip --label=$ID > $FILENAME
159159
echo $FILENAME
160160
161161
- file:

templates/postgres.12.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ run:
154154
#!/bin/bash
155155
ID=db-$(date +%F_%T)
156156
FILENAME=/shared/postgres_backup/$ID.tar.gz
157-
pg_basebackup --format=tar --pgdata=- --xlog --gzip --label=$ID > $FILENAME
157+
pg_basebackup --format=tar --pgdata=- --wal-method=fetch --gzip --label=$ID > $FILENAME
158158
echo $FILENAME
159159
160160
- file:

templates/postgres.13.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ run:
229229
#!/bin/bash
230230
ID=db-$(date +%F_%T)
231231
FILENAME=/shared/postgres_backup/$ID.tar.gz
232-
pg_basebackup --format=tar --pgdata=- --xlog --gzip --label=$ID > $FILENAME
232+
pg_basebackup --format=tar --pgdata=- --wal-method=fetch --gzip --label=$ID > $FILENAME
233233
echo $FILENAME
234234
235235
- file:

templates/postgres.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ run:
229229
#!/bin/bash
230230
ID=db-$(date +%F_%T)
231231
FILENAME=/shared/postgres_backup/$ID.tar.gz
232-
pg_basebackup --format=tar --pgdata=- --xlog --gzip --label=$ID > $FILENAME
232+
pg_basebackup --format=tar --pgdata=- --wal-method=fetch --gzip --label=$ID > $FILENAME
233233
echo $FILENAME
234234
235235
- file:

0 commit comments

Comments
 (0)