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
Kazuhiko Shiozaki
gitlab-ce
Commits
8662f473
Commit
8662f473
authored
Dec 29, 2015
by
Nathan Lowe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: raketasks: Add documentation on uploading to mounted shares
parent
e70ffdbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
doc/raketasks/backup_restore.md
doc/raketasks/backup_restore.md
+43
-0
No files found.
doc/raketasks/backup_restore.md
View file @
8662f473
...
@@ -153,6 +153,49 @@ with the name of your bucket:
...
@@ -153,6 +153,49 @@ with the name of your bucket:
}
}
```
```
### Uploading to locally mounted shares
You may also send backups to a mounted share (
`NFS`
/
`CIFS`
/
`SMB`
/ etc.) by
using the
[
`Local`
](
https://github.com/fog/fog-local#usage
)
storage provider.
The directory pointed to by the
`local_root`
key
**must**
be owned by the
`git`
user
**when mounted**
(mounting with the
`uid=`
of the
`git`
user for
`CIFS`
and
`SMB`
) or the user that you are executing the backup tasks under (for omnibus
packages, this is the
`git`
user).
The
`backup_upload_remote_directory`
**must**
be set in addition to the
`local_root`
key. This is the sub directory inside the mounted directory that
backups will be copied to, and will be created if it does not exist. If the
directory that you want to copy the tarballs to is the root of your mounted
directory, just use
`.`
instead.
For omnibus packages:
```
ruby
gitlab_rails
[
'backup_upload_connection'
]
=
{
:provider
=>
'Local'
,
:local_root
=>
'/mnt/backups'
}
# The directory inside the mounted folder to copy backups to
# Use '.' to store them in the root directory
gitlab_rails
[
'backup_upload_remote_directory'
]
=
'gitlab_backups'
```
For installations from source:
```
yaml
backup
:
# snip
upload
:
# Fog storage connection settings, see http://fog.io/storage/ .
connection
:
provider
:
Local
local_root
:
'
/mnt/backups'
# The directory inside the mounted folder to copy backups to
# Use '.' to store them in the root directory
remote_directory
:
'
gitlab_backups'
```
## Backup archive permissions
## Backup archive permissions
The backup archives created by GitLab (123456_gitlab_backup.tar) will have owner/group git:git and 0600 permissions by default.
The backup archives created by GitLab (123456_gitlab_backup.tar) will have owner/group git:git and 0600 permissions by default.
...
...
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