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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
317ce917
Commit
317ce917
authored
May 24, 2018
by
Alexander Tanayno
Committed by
Achilleas Pipinellis
May 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add info about the current format of the backup name and refresh examples of commands
parent
76b2c31d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
doc/raketasks/backup_restore.md
doc/raketasks/backup_restore.md
+6
-6
No files found.
doc/raketasks/backup_restore.md
View file @
317ce917
...
...
@@ -31,8 +31,8 @@ sudo apt-get install -y rsync
>**Note:**
In GitLab 9.2 the timestamp format was changed from
`EPOCH_YYYY_MM_DD`
to
`EPOCH_YYYY_MM_DD_GitLab
version`
, for example
`1493107454_2017
_04_25`
would become
`1493107454_201
7_04_25_9.1.0
`
.
`EPOCH_YYYY_MM_DD_GitLab
_version`
, for example
`1493107454_2018
_04_25`
would become
`1493107454_201
8_04_25_10.6.4-ce
`
.
The backup archive will be saved in
`backup_path`
, which is specified in the
`config/gitlab.yml`
file.
...
...
@@ -41,8 +41,8 @@ identifies the time at which each backup was created, plus the GitLab version.
The timestamp is needed if you need to restore GitLab and multiple backups are
available.
For example, if the backup name is
`1493107454_201
7_04_25_9.1.0
_gitlab_backup.tar`
,
then the timestamp is
`1493107454_201
7_04_25_9.1.0
`
.
For example, if the backup name is
`1493107454_201
8_04_25_10.6.4-ce
_gitlab_backup.tar`
,
then the timestamp is
`1493107454_201
8_04_25_10.6.4-ce
`
.
### Creating a backup of the GitLab system
...
...
@@ -574,7 +574,7 @@ First make sure your backup tar file is in the backup directory described in the
`/var/opt/gitlab/backups`
.
```
shell
sudo cp
1
493107454_2017_04_25_9.1.0
_gitlab_backup.tar /var/opt/gitlab/backups/
sudo cp
1
1493107454_2018_04_25_10.6.4-ce
_gitlab_backup.tar /var/opt/gitlab/backups/
```
Stop the processes that are connected to the database. Leave the rest of GitLab
...
...
@@ -592,7 +592,7 @@ restore:
```
shell
# This command will overwrite the contents of your GitLab database!
sudo
gitlab-rake gitlab:backup:restore
BACKUP
=
1493107454_201
7_04_25_9.1.0
sudo
gitlab-rake gitlab:backup:restore
BACKUP
=
1493107454_201
8_04_25_10.6.4-ce
```
Next, restore
`/etc/gitlab/gitlab-secrets.json`
if necessary as mentioned above.
...
...
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