mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-24 17:21:03 +01:00
Added 'systemctl restart docker'
This commit is contained in:
parent
febaa5ac3b
commit
f23ea7e6d3
@ -3,7 +3,8 @@
|
|||||||
# If rsync stucks consider:
|
# If rsync stucks consider:
|
||||||
# @see https://stackoverflow.com/questions/20773118/rsync-suddenly-hanging-indefinitely-during-transfers
|
# @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')" &&
|
backup_time="$(date '+%Y%m%d%H%M%S')" &&
|
||||||
backups_folder="/Backups/" &&
|
backups_folder="/Backups/" &&
|
||||||
repository_name="$(cd "$(dirname "$(readlink -f "${0}")")" && basename `git rev-parse --show-toplevel`)" &&
|
repository_name="$(cd "$(dirname "$(readlink -f "${0}")")" && basename `git rev-parse --show-toplevel`)" &&
|
||||||
@ -46,4 +47,7 @@ do
|
|||||||
fi
|
fi
|
||||||
echo "end backup routine for volume: $volume_name" || exit 1
|
echo "end backup routine for volume: $volume_name" || exit 1
|
||||||
done
|
done
|
||||||
|
echo "finished volume backups." &&
|
||||||
|
echo "restart docker service..." &&
|
||||||
|
systemctl restart docker || exit 1
|
||||||
echo "finished backup routine." || exit 1
|
echo "finished backup routine." || exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user