Commit 3c454b80 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Add docs for backing up to Google Cloud Storage

parent 6d7384f5
...@@ -126,6 +126,25 @@ sudo gitlab-rake gitlab:backup:create SKIP=db,uploads ...@@ -126,6 +126,25 @@ sudo gitlab-rake gitlab:backup:create SKIP=db,uploads
sudo -u git -H bundle exec rake gitlab:backup:create SKIP=db,uploads RAILS_ENV=production sudo -u git -H bundle exec rake gitlab:backup:create SKIP=db,uploads RAILS_ENV=production
``` ```
#### Using Google Cloud Storage
If you want to use Google Cloud Storage to save backups, go to the storage
settings page, select "Interoperability" and create an access key there.
Copy "Access Key" and "Secret", fill the configurations in
`/etc/gitlab/gitlab.rb`:
```ruby
gitlab_rails['backup_upload_connection'] = {
'provider' => 'Google',
'google_storage_access_key_id' => 'Access Key',
'google_storage_secret_access_key' => 'Secret'
}
gitlab_rails['backup_upload_remote_directory'] = 'my.google.bucket'
```
Make sure you have project and bucket setting up correctly, and run
`sudo gitlab-ctl reconfigure` after making the changes.
### Uploading backups to a remote (cloud) storage ### Uploading backups to a remote (cloud) storage
Starting with GitLab 7.4 you can let the backup script upload the '.tar' file it creates. Starting with GitLab 7.4 you can let the backup script upload the '.tar' file it creates.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment