summaryrefslogtreecommitdiff
path: root/doc/raketasks
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2015-12-18 13:41:33 +0200
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-01-31 22:53:56 +0000
commit9ff381c492695bf9b76b27047bd0b38a70a4daac (patch)
tree64ba8d2847a7402121785fd04dd3c2a858650ff5 /doc/raketasks
parenta691e9f494c7a661f9fa8ba199dbe6180d8d0329 (diff)
downloadgitlab-ce-9ff381c492695bf9b76b27047bd0b38a70a4daac.tar.gz
Add pages to excluded directories in backup task [ci skip]
Diffstat (limited to 'doc/raketasks')
-rw-r--r--doc/raketasks/backup_restore.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/raketasks/backup_restore.md b/doc/raketasks/backup_restore.md
index f6b4db71b44..0fb69d63dbe 100644
--- a/doc/raketasks/backup_restore.md
+++ b/doc/raketasks/backup_restore.md
@@ -84,6 +84,29 @@ Deleting tmp directories...[DONE]
Deleting old backups... [SKIPPING]
```
+## Exclude specific directories from the backup
+
+You can choose what should be backed up by adding the environment variable `SKIP`.
+The available options are:
+
+* `db`
+* `uploads` (attachments)
+* `repositories`
+* `builds` (CI build output logs)
+* `artifacts` (CI build artifacts)
+* `lfs` (LFS objects)
+* `pages` (pages content)
+
+Use a comma to specify several options at the same time:
+
+```
+# use this command if you've installed GitLab with the Omnibus package
+sudo gitlab-rake gitlab:backup:create SKIP=db,uploads
+
+# if you've installed GitLab from source
+sudo -u git -H bundle exec rake gitlab:backup:create SKIP=db,uploads RAILS_ENV=production
+```
+
## Upload backups to remote (cloud) storage
Starting with GitLab 7.4 you can let the backup script upload the '.tar' file it creates.