Restoring to new container #122
Unanswered
riccardospeggiorin-centropaghe
asked this question in
Q&A
Replies: 1 comment
-
I figured it out. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I saw the command for restoring in a new container
docker run --rm --tty --interactive -v $BACKUPFILE:/tmp/backupfile.sql.gz postgres:$VERSION /bin/sh -c "zcat /tmp/backupfile.sql.gz | psql --host=$HOSTNAME --port=$PORT --username=$USERNAME --dbname=$DBNAME -W"
Am I getting this right? This create a new fresh container with the postresql dump that I specify? Why I need to specify the $HOSTNAME if is a new container?
thanks
Beta Was this translation helpful? Give feedback.
All reactions