projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move backup-server specific sudoers entries out of debian-global sudo
[mirror/dsa-puppet.git]
/
modules
/
roles
/
files
/
postgresql_server
/
pg-backup-file
diff --git
a/modules/roles/files/postgresql_server/pg-backup-file
b/modules/roles/files/postgresql_server/pg-backup-file
index
08e6d38
..
9a432e5
100755
(executable)
--- a/
modules/roles/files/postgresql_server/pg-backup-file
+++ b/
modules/roles/files/postgresql_server/pg-backup-file
@@
-59,7
+59,7
@@
size="`stat -c '%s' "$file"`"
checksum=""
bn="`basename "$file"`"
targetname="$cluster.$what.$bn"
checksum=""
bn="`basename "$file"`"
targetname="$cluster.$what.$bn"
-logtuple
="($myhost,$targetname,$size,$checksum)
"
+logtuple
_start="($myhost,$targetname,$size
"
failures=""
for target in $backuphost; do
failures=""
for target in $backuphost; do
@@
-72,7
+72,7
@@
for target in $backuphost; do
ssh -C "$target" $ssh_options -o BatchMode=yes -o ServerAliveInterval=90 $myhost store-file pg "$targetname" "$size" "$checksum" < "$file"
if [ "$?" != 0 ]; then
ssh -C "$target" $ssh_options -o BatchMode=yes -o ServerAliveInterval=90 $myhost store-file pg "$targetname" "$size" "$checksum" < "$file"
if [ "$?" != 0 ]; then
- failures="$failures $logtuple"
+ failures="$failures $logtuple
_start,$checksum,$target)
"
fi
fi
done
fi
fi
done