Skip to content

Instantly share code, notes, and snippets.

@ebeigarts
Created May 16, 2017 12:51
Show Gist options
  • Save ebeigarts/3e37a41c891124600711057731fdefef to your computer and use it in GitHub Desktop.
Save ebeigarts/3e37a41c891124600711057731fdefef to your computer and use it in GitHub Desktop.
#!/bin/bash
exec >> /var/log/backup.log 2>&1
set -ex
echo "post.sh"
date
if [ -e /tmp/dump.pids ]; then
for PID in `cat /tmp/dump.pids`; do
kill $PID || true
done
fi
rm -rf /tmp/dump
rm -f /tmp/dump.pids
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment