diff --git a/README.md b/README.md index bac46f1..9f84dec 100644 --- a/README.md +++ b/README.md @@ -116,8 +116,17 @@ Next, restore the backup by running the restore command. You need to specify the timestamp of the backup you are restoring. ```shell +# Stop processes that are connected to the database +sudo gitlab-ctl stop unicorn +sudo gitlab-ctl stop sidekiq + +# DROP THE CURRENT DATABASE; workaround for a Postgres backup restore bug in GitLab 6.6 +sudo -u gitlab-psql /opt/gitlab/embedded/bin/dropdb gitlabhq_production # This command will overwrite the contents of your GitLab database! sudo gitlab-rake gitlab:backup:restore BACKUP=1393513186 + +# Start GitLab +sudo gitlab-ctl start ``` If there is a GitLab version mismatch between your backup tar file and the installed -- libgit2 0.21.2