X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fpostgres%2Ffiles%2Fbackup_server%2Fpostgres-make-base-backups;h=167b4b90d703592908308dad3d43e9428967d003;hb=54444a09e6b53214e11e1ed18f71bbf90ba57f65;hp=d96aeee79e0ef350917c92483ed41c2a546a2b12;hpb=712626737451089f49db41611805f0b63774e16a;p=mirror%2Fdsa-puppet.git diff --git a/modules/postgres/files/backup_server/postgres-make-base-backups b/modules/postgres/files/backup_server/postgres-make-base-backups index d96aeee79..167b4b90d 100755 --- a/modules/postgres/files/backup_server/postgres-make-base-backups +++ b/modules/postgres/files/backup_server/postgres-make-base-backups @@ -63,6 +63,7 @@ export PGSSLMODE=verify-full export PGSSLROOTCERT=/etc/ssl/debian/certs/ca.crt date=$(date "+%Y%m%d-%H%M%S") +thishost=$(hostname -f) while read host port username cluster version; do [ "${host#\#}" = "$host" ] || continue @@ -72,7 +73,7 @@ while read host port username cluster version; do continue fi - label="$date-$host-$cluster-$version-backup" + label="$thishost-$date-$host-$cluster-$version-backup" [ "$verbose" -gt 0 ] && echo "Doing $host:$port $version/$cluster: $label" target="$cluster.BASE.$label.tar.gz" @@ -86,10 +87,11 @@ while read host port username cluster version; do fi mv "$tmp" "$ROOTDIR/${host%%.*}/$target" done << EOF -chopin.debian.org 5432 debian-backup dak 9.1 -bmdb1.debian.org 5435 debian-backup main 9.1 -bmdb1.debian.org 5436 debian-backup wanna-build 9.1 -danzi.debian.org 5433 debian-backup main 9.1 -franck.debian.org 5433 debian-backup dak 9.1 -sibelius.debian.org 5433 debian-backup snapshot 9.1 +bmdb1.debian.org 5435 debian-backup main 9.4 +bmdb1.debian.org 5436 debian-backup wannabuild 9.4 +danzi.debian.org 5433 debian-backup main 9.4 +franck.debian.org 5433 debian-backup dak 9.4 +sibelius.debian.org 5433 debian-backup snapshot 9.4 +moszumanska.debian.org 5432 debian-backup main 9.1 +seger.debian.org 5432 debian-backup dak 9.4 EOF