File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments