]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/postgres/files/backup_server/postgres-make-base-backups
Add seger to postgres-make-base-backups
[dsa-puppet.git] / modules / postgres / files / backup_server / postgres-make-base-backups
index d4352f4a9abeaf7173a1c9ae69ff5258571b7f02..8b74853c9ef2efc38045ab0a2c8b2a38425907ba 100755 (executable)
@@ -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"
@@ -91,6 +92,7 @@ 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.1
+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