diff --git a/debian/changelog b/debian/changelog index c880a93..f84dba0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +remote-backup (1.5.2) stable; urgency=low + + * close log before printing failed backups info + + -- Vincent Riquer Mon, 13 Feb 2012 09:28:40 +0100 + remote-backup (1.5.1) stable; urgency=low * fix typo in rsync failure code diff --git a/remote-backup b/remote-backup index 7678ab2..1c5f8cb 100755 --- a/remote-backup +++ b/remote-backup @@ -91,6 +91,11 @@ openLog() { exec 2>&1 } +closeLog() { + exec 1>&3 + exec 2>&3 +} + doBackup() { config="$1" if [ ! -e "$config" ] @@ -280,6 +285,8 @@ else done fi +closeLog + if (( ${#failedBackups} )) then cat <<-EOF