IQSS / dataverse-docker

Dataverse 6.2 on Docker with integrated services called "Archive in a box" and could be used both as demo and production system and easily integrated with other services.
57 stars 45 forks source link

What is the recommended way to back-up the docker-based dataverse? #99

Open markwilkinson opened 1 month ago

markwilkinson commented 1 month ago

Subject line says it all!

I see a lot of docker volumes that might contain important stuff...?? Or is it all in a folder somewhere, that I can just docker cp out of the container?

Advice welcome!

seaneu commented 1 month ago

Hi, Actually there are 2 things I backup periodically that I run via a bash script from jenkins before I do a gitcommit

  1. Database (cd /dataverse-docker; export postgresqlId=$(docker ps | grep postgres | awk -F ' ' '{print $1}' | tr -d "\n");docker exec -i $postgresqlId pg_dumpall -c -U dataverse > dataverse.sql;);
  2. Working Folder (cp -fR /dataverse-docker/* /dataverse-docker-gitcommits/;);