Skip to content
Mint Service Desk Documentation centre

Backup And Restore

Mint Service Desk 3.4.2 user manual.

Create Backup

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.

Restoring Data

Copy the database dump into the container:

docker cp filename.sql id_container:/filename.sql

Open a shell in the database container:

docker exec -it id_container /bin/sh

Restore the backup:

psql -U postgres -f filename.sql