summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-06-27 15:11:41 -0700
committerStan Hu <stanhu@gmail.com>2018-06-27 15:11:41 -0700
commit739c69cccb918a8f995df6ed088c586d9b6f60c1 (patch)
treeb149822bd6efdc1e51591f0070640af3aeb5fb58 /doc
parentcf0b459b879d82a8dacda5ca737274d134c39214 (diff)
downloadgitlab-ce-739c69cccb918a8f995df6ed088c586d9b6f60c1.tar.gz
Document that DIRECTORY environment variable in backups only applies to remote storage
Closes #38949
Diffstat (limited to 'doc')
-rw-r--r--doc/raketasks/backup_restore.md19
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/raketasks/backup_restore.md b/doc/raketasks/backup_restore.md
index 95221d8b6b1..2e7702dda07 100644
--- a/doc/raketasks/backup_restore.md
+++ b/doc/raketasks/backup_restore.md
@@ -326,6 +326,16 @@ For installations from source:
1. [Restart GitLab] for the changes to take effect
+#### Specifying a custom directory for backups
+
+Note: This option only works for remote storage. If you want to group your backups
+you can pass a `DIRECTORY` environment variable:
+
+```
+sudo gitlab-rake gitlab:backup:create DIRECTORY=daily
+sudo gitlab-rake gitlab:backup:create DIRECTORY=weekly
+```
+
### Uploading to locally mounted shares
You may also send backups to a mounted share (`NFS` / `CIFS` / `SMB` / etc.) by
@@ -369,15 +379,6 @@ For installations from source:
remote_directory: 'gitlab_backups'
```
-### Specifying a custom directory for backups
-
-If you want to group your backups you can pass a `DIRECTORY` environment variable:
-
-```
-sudo gitlab-rake gitlab:backup:create DIRECTORY=daily
-sudo gitlab-rake gitlab:backup:create DIRECTORY=weekly
-```
-
### Backup archive permissions
The backup archives created by GitLab (`1393513186_2014_02_27_gitlab_backup.tar`)