ansible/playbooks/apps/files/bin/borgmatic_on_after_backup.sh
Gabriel Augendre b02de7192c
Some checks failed
/ run ansible (push) Has been cancelled
add borgmatic
2024-10-13 19:15:24 +02:00

11 lines
395 B
Bash
Executable file

#!/bin/bash
SOURCE_DIRECTORY="/mnt/data/nextcloud-aio/backups/borg"
rm "$SOURCE_DIRECTORY/aio-lockfile"
if docker ps --format "{{.Names}}" | grep "^nextcloud-aio-nextcloud$"; then
docker exec -en nextcloud-aio-nextcloud bash /notify.sh "Remote Borg backup successful!" "Synchronised the backup repository successfully!"
else
echo "Synchronised the backup repository successfully."
fi