I’m attempting to get all docker containers to stop before duplicati backups to avoid corruption. so mounting the required docker to the duplicati container and doing
docker [stop/start] Radarr Sonarr Jackett Nextcloud MariaDB SWAG Deluge I see that it works as expected. But putting that in a bash script:
if [ "$DUPLICATI__OPERATIONNAME" = "Backup" ]; then echo "Stopping Docker Containers" >$logfile echo $? >>$logfile /usr/bin/docker stop Radarr Sonarr Jackett Nextcloud MariaDB SWAG Deluge >>$logfile exit 0 else echo "Backup Not running" >>$logfile exit 1 fi
I see in the log file that the echo commands worked but the docker command did nothing, no errors or anything. anyone know how to fix this?