I followed the instructions to run Monica and mysql docker containers via docker-compose, and I have mounted volumes for both of them. My current method of backup is a script that runs daily that zips the mounted volumes for the mysql container and uploads it to Google Drive. However, the volume has been empty ever since I made my container, something I noticed recently. I notice in the Monica dashboard there's an option to export SQL, and that seems be the best option for backing up. Is there a way I can do this automatically via a script on my server? I'd like to be able to generate these SQL dumps and upload them the way I've been doing with the mounted volume.
I followed the instructions to run Monica and mysql docker containers via docker-compose, and I have mounted volumes for both of them. My current method of backup is a script that runs daily that zips the mounted volumes for the mysql container and uploads it to Google Drive. However, the volume has been empty ever since I made my container, something I noticed recently. I notice in the Monica dashboard there's an option to export SQL, and that seems be the best option for backing up. Is there a way I can do this automatically via a script on my server? I'd like to be able to generate these SQL dumps and upload them the way I've been doing with the mounted volume.