Closed danobot closed 3 years ago
Heres what I did to to make it work:
Fresh install call docker-compose up -d
. This creates the directory structure in gitlab data volume. Then copy the backup tar
file into the backups
folder.
Then run the following in docker compose directory:
docker-compose run --rm gitlab app:rake gitlab:backup:restore BACKUP=1609163751_2020_12_28_12.7.7
I didnt realise docker-compose run
would set up the container and all its volumes and dependencies according to docker-compose file. The provided steps work after all. :)
Those command ( app:init
, app:start
, app:sanitize
, app:rake
) are defined in entrypoint.sh
, so running it inside container is not the expected usage.
From your comments, I guess you're using docker-compose
, so the command to execute will be:
docker-compose run --rm gitlab app:rake gitlab:backup:restore BACKUP=1609163751_2020_12_28_12.7.7
See Restoring instruction in README
for more detail.
Oops, sorry for duplicate answer.
yeah I misinterpreted the readme. confusing docker-compose run
with docker run
. Got there in the end.
Connecting to container like this:
The running this command inside:
When i call it in docker compose method it asks an interactive question which kills the process.
Logs:
At this point the container restarts.