-
It would be useful to expose the database port to the docker host in the same way It is possible to communicate with the database over the docker network, though there are cases where an external backup tool like borgmatic does not necessarily run in docker, so accessing the database port over locahost would be useful. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hm... I would always recommend to stop the containers of AIO correctly before doing any backup externally. This has the advantage that AIO will also create a database dump automatically upon container shut down and you do not need to do it manually. See https://github.com/nextcloud/all-in-one#how-to-stopstartupdate-containers-or-trigger-the-daily-backup-from-a-script-externally on how to stop the containers and start them again. I guess you should be able to use this feature of borgmatic to run a shell script or shell command before and after the backup. |
Beta Was this translation helpful? Give feedback.
Hm... I would always recommend to stop the containers of AIO correctly before doing any backup externally. This has the advantage that AIO will also create a database dump automatically upon container shut down and you do not need to do it manually. See https://github.com/nextcloud/all-in-one#how-to-stopstartupdate-containers-or-trigger-the-daily-backup-from-a-script-externally on how to stop the containers and start them again.
I guess you should be able to use this feature of borgmatic to run a shell script or shell command before and after the backup.