Added 'systemctl restart docker'

This commit is contained in:
Kevin Veen-Birkenbach 2021-10-18 13:25:18 +02:00
parent febaa5ac3b
commit f23ea7e6d3

View File

@ -3,7 +3,8 @@
# If rsync stucks consider:
# @see https://stackoverflow.com/questions/20773118/rsync-suddenly-hanging-indefinitely-during-transfers
#
echo "start volume backups..."
echo "start backup routine..." &&
echo "start volume backups..." &&
backup_time="$(date '+%Y%m%d%H%M%S')" &&
backups_folder="/Backups/" &&
repository_name="$(cd "$(dirname "$(readlink -f "${0}")")" && basename `git rev-parse --show-toplevel`)" &&
@ -46,4 +47,7 @@ do
fi
echo "end backup routine for volume: $volume_name" || exit 1
done
echo "finished volume backups." &&
echo "restart docker service..." &&
systemctl restart docker || exit 1
echo "finished backup routine." || exit 1