From 207b60084233e23133aad99f3857105d2c52e9aa Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Tue, 25 Mar 2014 18:18:51 +0100 Subject: [PATCH] Include PG workaround in restore instructions --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) 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