To add a key (in order to back up an SSH project) to the Ditlab container cd/home/git/gitlabbundle exec rake gitlab:backup:create rails_env= in the personal user settings before actually applying the settings Production Cd/home/git/gitlabbundle exec bin/rake gitlab:backup:restore rails_env=production chown git:git-r/opt/ Gitlab-7.11.4-0/apps/gitlab/repositories above for self-time content, the following is reproduced other people content Gitlab installation and backup recovery 2015-08-07 15:22:03
Category: Project management
Download the installation package wget Https://downloads.bitnami.com/files/stacks/gitlab/7.11.4-0/bitnami-gitlab-7.11.4-0-linux-x64-installer.run
Then change to execute permission: chmod a+x Bitnami-gitlab-7.11.4-0-linux-x64-installer.run
To perform the installation again:./bitnami-gitlab-7.11.4-0-linux-x64-installer.run
Follow the prompts to install the input y/n installation:
Click (here) to collapse or open
- [Email protected] ~]#./bitnami-gitlab-7.11.4-0-linux-x64-installer.run
- The installer detects that exists a ' git ' user in the system. This installer would change the configuration for this user. Want to continue the installation? [y/n]: Y
- The installer detects that exists a ' gitlab_ci ' user in the system. This installer would change the configuration for this user. Want to continue the installation? [y/n]: Y
- ----------------------------------------------------------------------------
- Welcome to the Bitnami Gitlab Stack Setup Wizard.
- ----------------------------------------------------------------------------
- Select the components of your want to install; Clear the components does not want
- To install. Click Next When your is ready to continue.
- Phppgadmin [y/n]: Y
- Gitlab:y (cannot be edited)
- GitLab CI [y/n]: Y
- Is the selection above correct? [y/n]: Y
- ----------------------------------------------------------------------------
- installation folder
- Please, choose a folder to install Bitnami Gitlab Stack
- Select a folder [/opt/gitlab-7.11.4-0]:/opt/bitnami
- ----------------------------------------------------------------------------
- Create Admin Account
- Bitnami Gitlab Stack Admin user creation
- email Address [[email protected]: [email protected]
- Login [user]: Test
- Password:
- Please confirm your password:
- ----------------------------------------------------------------------------
- Hostname that'll be used to create internal URLs. If This value is incorrect,
- You are unable to access your Gitlab installation from other computers. It is
- advisable to use a Domain instead of the IP address for compatibility with
- Different browsers.
- Domain [127.0.0.1]: test.gitlab.com
- Do you want to configure mail support? [y/n]: N
- ----------------------------------------------------------------------------
- Setup is now the ready to begin installing Bitnami Gitlab Stack on your computer.
- Want to continue? [y/n]: Y
- ----------------------------------------------------------------------------
- Please wait while the Setup installs Bitnami Gitlab Stack on your computer.
- Installing
- 0% ______________ 50% ______________ 100%
- #########################################
- ----------------------------------------------------------------------------
- Setup has finished installing Bitnami Gitlab Stack on your computer.
- Info:to access the Bitnami Gitlab Stack, go to
- Http://dev.domain.org:80 from your browser.
- Press [Enter] to continue:
The red logo above is set according to your preferences, such as installation path, Admin user and so on.
To this end, the entire installation, set the host after access to test.gitlab.com can be used normally.
Backup and restore operations, the following operations are performed using the root user:
1. Specify the backup path vi/opt/gitlab-6.4.3-1/apps/gitlab/htdocs/config/gitlab.yml, and find the changes shown below
Click (here) to collapse or open
- # # Backup Settings
- Backup
- Path: "/tmp/backups" # Relative paths is Relative to Rails.root (default:tmp/backups/)
2. Perform backup
Click (here) to collapse or open
- cd/opt/gitlab-7.11.4-0/
- ./use_gitlab
- Cd/opt/gitlab-7.11.4-0/apps/gitlab/htdocs
- Bundle EXEC Bin/rake gitlab:backup:create rails_env=production
When the operation is complete, a backup file is produced in the/tmp/backups/directory, similar to the 1438917368_gitlab_backup.tar
3. Restore the backed up data
Click (here) to collapse or open
- cd/opt/gitlab-7.11.4-0/
- ./use_gitlab
- Cd/opt/gitlab-7.11.4-0/apps/gitlab/htdocs
- Bundle EXEC Bin/rake Gitlab:backup:restore rails_env=production
- Chown Git:git-r/opt/gitlab-7.11.4-0/apps/gitlab/repositories
If you have more than one backup file in the directory you are backing up, you need to specify the backup file backup=xxx after rails_env=production.
The backup has been restored to completion.
git Backup and Recovery