Don't use versioned pg_basebackup
authorJulien Cristau <jcristau@debian.org>
Mon, 9 Sep 2019 08:34:44 +0000 (10:34 +0200)
committerJulien Cristau <jcristau@debian.org>
Mon, 9 Sep 2019 08:34:44 +0000 (10:34 +0200)
Use the latest so we know we can pass -X none.  -X fetch causes the
debsources backup to fail with a "requested WAL segment has already been
removed" error.

modules/postgres/files/backup_server/postgres-make-one-base-backup

index ec88bbe..f8baf1a 100755 (executable)
@@ -81,10 +81,10 @@ target="$cluster.BASE.$label.tar.gz"
 tmp=$(tempfile -d "$ROOTDIR" -p "BASE-$host:$port-" -s ".tar.gz")
 trap "rm -f '$tmp'" EXIT
 
-/usr/lib/postgresql/"$version"/bin/pg_basebackup \
+/usr/bin/pg_basebackup \
        --format=tar \
        --pgdata=- \
-       -X fetch \
+       -X none \
        --label="$label" \
        --host="$host" \
        --port="$port" \