# HG changeset patch # User Heiko Schlittermann (JUMPER) # Date 1438174412 -7200 # Node ID 265aec94f00b9349bb7f313bac84fa8ba4a83aa6 # Parent a9147d0306dd2c58f5e6e72256b8f94218eca7c8 [perltidy] diff -r a9147d0306dd -r 265aec94f00b scripts/pg-backup --- 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',