summaryrefslogtreecommitdiff
path: root/doc/raketasks
diff options
context:
space:
mode:
authorFrederic Van Espen <fes@escaux.com>2018-12-26 15:33:11 +0100
committerFrederic Van Espen <fes@escaux.com>2018-12-26 15:33:11 +0100
commit7a58eb2e1612cef1178c9b35df9aaea71cbe04aa (patch)
tree920a16874148b95d610493ebbfa47867bf450815 /doc/raketasks
parent78dcdc871a053e68e60e72d891801895f74b1c79 (diff)
downloadgitlab-ce-7a58eb2e1612cef1178c9b35df9aaea71cbe04aa.tar.gz
Allow to override part of the backup filename
Diffstat (limited to 'doc/raketasks')
-rw-r--r--doc/raketasks/backup_restore.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/raketasks/backup_restore.md b/doc/raketasks/backup_restore.md
index 57bc71d2903..4238685b54f 100644
--- a/doc/raketasks/backup_restore.md
+++ b/doc/raketasks/backup_restore.md
@@ -195,6 +195,17 @@ To use the `copy` strategy instead of the default streaming strategy, specify
sudo gitlab-rake gitlab:backup:create STRATEGY=copy
```
+### Backup filename
+
+By default a backup file is created according to the specification in [the Backup timestamp](#backup-timestamp) section above. You can however override the `[TIMESTAMP]` part of the filename by setting the `BACKUP` environment variable. For example:
+
+```sh
+sudo gitlab-rake gitlab:backup:create BACKUP=dump
+```
+
+The resulting file will then be `dump_gitlab_backup.tar`. This is useful for systems that make use of rsync and incremental backups, and will result in considerably faster transfer speeds.
+
+
### Excluding specific directories from the backup
You can choose what should be exempt from the backup up by adding the environment variable `SKIP`.