--- a/scripts/pg-backup Wed Jul 29 14:51:46 2015 +0200
+++ b/scripts/pg-backup Wed Jul 29 14:53:32 2015 +0200
@@ -63,17 +63,17 @@
}
}
else {
- @clusters;
- }
+ @clusters;
+ }
};
- # check for consistency
- if (@ARGV == 1 and !@tasks) {
- die "$0: no tasks for version $ARGV[0]\n";
- }
- elsif (@ARGV > 1 and @tasks < @ARGV - 1) {
- die "$0: no tasks for version $ARGV[0] and clusters @ARGV[1..$#ARGV]\n";
- }
+ # check for consistency
+ if (@ARGV == 1 and !@tasks) {
+ die "$0: no tasks for version $ARGV[0]\n";
+ }
+ elsif (@ARGV > 1 and @tasks < @ARGV - 1) {
+ die "$0: no tasks for version $ARGV[0] and clusters @ARGV[1..$#ARGV]\n";
+ }
# now get the real jobe done
# run for all tasks, regardless of errors
@@ -83,7 +83,7 @@
rmdir glob("$opt_basedir/*");
mkdir $task->{dirname}
or die "$0: Can't mkdir $task->{dirname}: $!\n"
- unless $opt_dry;
+ unless $opt_dry;
my @cmd = (
pg_basebackup => '--format' => 't',