mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-10-16 22:51:48 +02:00
12 lines
395 B
Bash
12 lines
395 B
Bash
|
#!/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
|