Backup from Docker install Help

I’ve installed invoice ninja via docker, and after some teething issues, everything is working.

Does anyone know, what the procedure is for making backups? ideally, I’d want to backup all client, quotes, payments, and invoice, etc aswell as the customised invoice design/settings.

What approach did you take to storing your container’s data (internal docker volumes, or external binding)? You’ll have to back that up and then the mysql database using something like mysqldump - include the docker-compose.yml and associated files and you have pretty much everything.

Hey there. As far as I know, we don’t have any official way to do this, yet.

@david @hillel What about export DB button in AP?

At the moment, approach with mysqldump is by far easiest way.

Hi Both,

So, I’m using the internal docker volumes, so I can use standard tools to take a backup of these.

In terms of the mysqldump, how would I run this as the db is part of the docker-compose environment. I’m guessing get a /bin/bash shell within the container, then take a backup using mysqldump then?

Restoring would be in reverse I assume?

The Mysql container is /bin/sh

Yea, the mysqldump is standard stuff. I’m sure there are ways to automate that (though getting a cron running in containers is not always fun).

What “standard tools” would you use to backup you internal docker volumes?

Basically using this tutorial: