]> arthur.barton.de Git - backup-script.git/commit
Redirect stderr of scp(1) to stdout to not indicate errors
authorAlexander Barton <alex@barton.de>
Wed, 10 Jan 2018 10:52:11 +0000 (11:52 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 10 Jan 2018 10:52:11 +0000 (11:52 +0100)
commit9b6f31a99aaf628ed846594d48ce6761e98b57fc
treee517f5763351f257184d1a8886171070fac397d5
parentd1df3a8e7472d91b1356fcb20862bc738f3d0215
Redirect stderr of scp(1) to stdout to not indicate errors

Some warning messages of scp(1) are written to stderr (like "Connection
to ... closed by remote host."), even when there is no error and the
exit code is 0 ("no error"). Therefore redirect stderr to stdout to not
confuse "mail wrapper scripts" that see output on stderr otherwise.
bin/backup-script