meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
git:gitlab:backup [2020/07/09 08:55] – created niziakgit:gitlab:backup [2022/09/28 22:04] (current) niziak
Line 55: Line 55:
     * to wrap ''initctl'' with ''systemctl'', use [[https://gist.github.com/zorael/8907216]]     * to wrap ''initctl'' with ''systemctl'', use [[https://gist.github.com/zorael/8907216]]
   * install default gitlab package and make sure it is running   * install default gitlab package and make sure it is running
-    * use /etc/gitlab from backup+    * use `/etc/gitlabfrom backup
     * run ''gitlab-ctl reconfigure''     * run ''gitlab-ctl reconfigure''
   * stop gitlab   * stop gitlab
-    * ''sudo gitlab-ctl stop unicorn'' +<code bash> 
-    * ''sudo gitlab-ctl stop sidekiq''+sudo gitlab-ctl stop unicorn 
 +sudo gitlab-ctl stop puma 
 +sudo gitlab-ctl stop sidekiq 
 +# Verify 
 +sudo gitlab-ctl status 
 +</code> 
 +  * Prepare backup file/directory 
 +    * Make sure that backup pointed by `gitlab_rails['backup_path']` is owned by `git` user.
   * Restore backup   * Restore backup
-    * ''sudo gitlab-rake gitlab:backup:restore'' +    * ''sudo gitlab-backup restore'' 
-    * OR ''sudo gitlab-rake gitlab:backup:restore BACKUP=1393513186''+    * OR ''sudo gitlab-backup restore BACKUP=1393513186''
   * Start GitLab   * Start GitLab
     * ''sudo gitlab-ctl start''     * ''sudo gitlab-ctl start''