]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Merge branch 'master' of ssh://handel.debian.org/~/dsa-puppet
authorLuca Filipozzi <lfilipoz@emyr.net>
Tue, 10 Jun 2014 19:51:37 +0000 (19:51 +0000)
committerLuca Filipozzi <lfilipoz@emyr.net>
Tue, 10 Jun 2014 19:51:37 +0000 (19:51 +0000)
modules/autofs/files/leaseweb/auto.dsa
modules/postgres/files/backup_server/postgres-make-base-backups

index 53edd6dbfe70cfcfd4401e48a9284b74f407a3e0..aa09a8f0c90b305c8531ca963bcef1208e35389a 100644 (file)
@@ -2,3 +2,4 @@ snapshot-1              -fstype=nfs,ro,tcp     10.0.0.1:/storage/snapshot-farm-1
 snapshot-2              -fstype=nfs,ro,tcp     10.0.0.2:/storage/snapshot-farm-2
 snapshot-3              -fstype=nfs,ro,tcp     10.0.0.3:/storage/snapshot-farm-3
 snapshot-4              -fstype=nfs,ro,tcp     10.0.0.4:/storage/snapshot-farm-4
+morgue.debian.org       -fstype=nfs,ro,tcp     10.0.0.3:/srv/morgue.debian.org
index 9a9d188037521bdfdf6f28e9fd2a77694b68fc16..d96aeee79e0ef350917c92483ed41c2a546a2b12 100755 (executable)
@@ -47,6 +47,18 @@ else
        console=""
 fi
 
+if [ "${1:-}" = "-h" ] || [ "${1:-}" = "--help" ]; then
+       echo "Usage: $0 [<host>:<port>]"
+       exit 0
+fi
+
+if [ "$#" -gt 0 ]; then
+       forcehostport="$1"
+       shift
+else
+       forcehostport=""
+fi
+
 export PGSSLMODE=verify-full
 export PGSSLROOTCERT=/etc/ssl/debian/certs/ca.crt
 
@@ -55,6 +67,11 @@ date=$(date "+%Y%m%d-%H%M%S")
 while read host port username  cluster version; do
        [ "${host#\#}" = "$host" ] || continue
 
+       if [ -n "$forcehostport" ] && [ "$forcehostport" != "$host:$port" ]; then
+               [ "$verbose" -gt 0 ] && echo "Skipping $host:$port $version/$cluster."
+               continue
+       fi
+
        label="$date-$host-$cluster-$version-backup"
        [ "$verbose" -gt 0 ] && echo "Doing $host:$port $version/$cluster: $label"