Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
be34477d
Commit
be34477d
authored
Sep 30, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'backup_uploader_docs' into 'master'
Improve backup uploader docs See merge request !1137
parents
0c29cb34
f778387e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
25 deletions
+13
-25
config/gitlab.yml.example
config/gitlab.yml.example
+1
-0
doc/raketasks/backup_restore.md
doc/raketasks/backup_restore.md
+12
-25
No files found.
config/gitlab.yml.example
View file @
be34477d
...
@@ -216,6 +216,7 @@ production: &base
...
@@ -216,6 +216,7 @@ production: &base
# # Fog storage connection settings, see http://fog.io/storage/ .
# # Fog storage connection settings, see http://fog.io/storage/ .
# connection:
# connection:
# provider: AWS
# provider: AWS
# region: eu-west-1
# aws_access_key_id: AKIAKIAKI
# aws_access_key_id: AKIAKIAKI
# aws_secret_access_key: 'secret123'
# aws_secret_access_key: 'secret123'
# # The remote 'directory' to store your backups. For S3, this would be the bucket name.
# # The remote 'directory' to store your backups. For S3, this would be the bucket name.
...
...
doc/raketasks/backup_restore.md
View file @
be34477d
...
@@ -58,6 +58,7 @@ For omnibus packages:
...
@@ -58,6 +58,7 @@ For omnibus packages:
```
ruby
```
ruby
gitlab_rails
[
'backup_upload_connection'
]
=
{
gitlab_rails
[
'backup_upload_connection'
]
=
{
'provider'
=>
'AWS'
,
'provider'
=>
'AWS'
,
'region'
=>
'eu-west-1'
,
'aws_access_key_id'
=>
'AKIAKIAKI'
,
'aws_access_key_id'
=>
'AKIAKIAKI'
,
'aws_secret_access_key'
=>
'secret123'
'aws_secret_access_key'
=>
'secret123'
}
}
...
@@ -73,6 +74,7 @@ For installations from source:
...
@@ -73,6 +74,7 @@ For installations from source:
# Fog storage connection settings, see http://fog.io/storage/ .
# Fog storage connection settings, see http://fog.io/storage/ .
connection
:
connection
:
provider
:
AWS
provider
:
AWS
region
:
eu-west-1
aws_access_key_id
:
AKIAKIAKI
aws_access_key_id
:
AKIAKIAKI
aws_secret_access_key
:
'
secret123'
aws_secret_access_key
:
'
secret123'
# The remote 'directory' to store your backups. For S3, this would be the bucket name.
# The remote 'directory' to store your backups. For S3, this would be the bucket name.
...
@@ -81,15 +83,15 @@ For installations from source:
...
@@ -81,15 +83,15 @@ For installations from source:
If you are uploading your backups to S3 you will probably want to create a new
If you are uploading your backups to S3 you will probably want to create a new
IAM user with restricted access rights. To give the upload user access only for
IAM user with restricted access rights. To give the upload user access only for
uploading backups create the following
three profiles
, replacing
`my.s3.bucket`
uploading backups create the following
IAM profile
, replacing
`my.s3.bucket`
with the name of your bucket:
with the name of your bucket:
```
json
```
json
{
{
"Version"
:
"201
4-09-29
"
,
"Version"
:
"201
2-10-17
"
,
"Statement"
:
[
"Statement"
:
[
{
{
"Sid"
:
"Stmt141
1994999
"
,
"Sid"
:
"Stmt141
2062044000
"
,
"Effect"
:
"Allow"
,
"Effect"
:
"Allow"
,
"Action"
:
[
"Action"
:
[
"s3:AbortMultipartUpload"
,
"s3:AbortMultipartUpload"
,
...
@@ -97,42 +99,27 @@ with the name of your bucket:
...
@@ -97,42 +99,27 @@ with the name of your bucket:
"s3:GetBucketLocation"
,
"s3:GetBucketLocation"
,
"s3:GetObject"
,
"s3:GetObject"
,
"s3:GetObjectAcl"
,
"s3:GetObjectAcl"
,
"s3:List
MultipartUploadPart
s"
,
"s3:List
BucketMultipartUpload
s"
,
"s3:PutObject"
,
"s3:PutObject"
,
"s3:PutObjectAcl"
"s3:PutObjectAcl"
],
],
"Resource"
:
[
"Resource"
:
[
"arn:aws:s3:::my.s3.bucket/*"
"arn:aws:s3:::my.s3.bucket/*"
]
]
}
},
]
}
```
```
json
{
"Version"
:
"2014-09-29"
,
"Statement"
:
[
{
{
"Sid"
:
"Stmt141
1995081
"
,
"Sid"
:
"Stmt141
2062097000
"
,
"Effect"
:
"Allow"
,
"Effect"
:
"Allow"
,
"Action"
:
[
"Action"
:
[
"s3:ListAllMyBuckets"
,
"s3:GetBucketLocation"
"s3:GetBucketLocation"
,
"s3:ListAllMyBuckets"
],
],
"Resource"
:
[
"Resource"
:
[
"*"
"*"
]
]
}
},
]
}
```
```
json
{
"Version"
:
"2014-09-29"
,
"Statement"
:
[
{
{
"Sid"
:
"Stmt141
1995608
"
,
"Sid"
:
"Stmt141
2062128000
"
,
"Effect"
:
"Allow"
,
"Effect"
:
"Allow"
,
"Action"
:
[
"Action"
:
[
"s3:ListBucket"
"s3:ListBucket"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment