Skip to content
Mint Service Desk Documentation centre

Create Backup

Export the PostgreSQL databases from the database container and copy the SQL backup to the Mint host.

Open a shell in the database container:

docker exec -it id_container /bin/sh

Replace id_container with the database container ID. Inside the container, run:

pg_dumpall -U postgres --filename.sql

filename.sql is the name of the SQL backup file.

Exit the container:

exit

On the host, run:

docker cp id_container:/filename.sql .

docker cp id_container:/filename.sql . copies the database backup to the Mint host.