Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
markwilkinson opened this issue Oct 10, 2024 · 1 comment
Open

Comments

@markwilkinson
Copy link

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
Copy link

seaneu commented Oct 17, 2024

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/;);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants