backup.sh: Clean up junk if tar creation fails
authorMegaBrutal <code+git@megabrutal.com>
Thu, 20 Aug 2015 05:31:48 +0000 (07:31 +0200)
committerMegaBrutal <code+git@megabrutal.com>
Thu, 20 Aug 2015 05:31:48 +0000 (07:31 +0200)
commit9ec1d5004911a56e6853d3bff2ac5306013dfbc5
treeb9201741528ebfbf59b06b3c1ee15b53377d4c6b
parent0ff0a58157fc0acd3e9ab407ce8be25bcea01a97
backup.sh: Clean up junk if tar creation fails

If the file system gets full during tar creation, and the junk files (SQL dumps, partial TAR) stay there, the file system is left with 100% usage.
This may have very unpleasant consequences, so it's best to simply remove those files.

modified:   mysql/backup.sh
mysql/backup.sh