#!/bin/sh
#
# mkmysqldump -- dump MySQL (master) data
-# Copyright (c)2015 Alexander Barton <alex@barton.de>
+# Copyright (c)2015-2017 Alexander Barton <alex@barton.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
if [ -n "$COMPRESS" -a -s "$OUTFILE" -a $r -eq 0 ]; then
echo "Dump done: $(date)"
echo "Compressing dump file ($COMPRESS) ..."
- $COMPRESS "$OUTFILE"
+ $COMPRESS "$OUTFILE" 2>&1
+ [ $? -eq 0 ] || echo "Error compressing dump file!" >&2
fi
echo "End: $(date)"
echo