@@ -521,26 +521,15 @@ See [doc/settings/nginx.md](doc/settings/nginx.md).
## Backups
### Creating an application backup
To create a backup of your repositories and GitLab metadata, run the following command.
```shell
# Remove 'sudo' if you are the 'git' user
sudo gitlab-rake gitlab:backup:create
```
If you are using non-packaged database see [documentation on using non-packaged database](doc/settings/database.md#using-a-non-packaged-postgresql-database-management-server).
For GitLab CI run:
### Creating an application backup
```
# Remove 'sudo' if you are the 'git' user
sudo gitlab-ci-rake backup:create
```
To create a backup of your repositories and GitLab metadata, follow the [backup create documentation](http://doc.gitlab.com/ce/raketasks/backup_restore.html#create-a-backup-of-the-gitlab-system).
This will store a tar file in `/var/opt/gitlab/backups`. The filename will look like
`1393513186_gitlab_backup.tar`, where 1393513186 is a timestamp.
Backup create will store a tar file in `/var/opt/gitlab/backups`.
Similarly for CI, this will store a tar file in `/var/opt/gitlab/ci-backups`.
Similarly for CI, backup create will store a tar file in `/var/opt/gitlab/ci-backups`.
If you want to store your GitLab backups in a different directory, add the
following setting to `/etc/gitlab/gitlab.rb` and run `sudo gitlab-ctl
Loading
Loading
@@ -550,6 +539,10 @@ reconfigure`:
gitlab_rails['backup_path'] = '/mnt/backups'
```
### Restoring an application backup
See [backup restore documentation](http://doc.gitlab.com/ce/raketasks/backup_restore.html#omnibus-installations).
### Upload backups to remote (cloud) storage
For details check [backup restore document of GitLab CE](https://gitlab.com/gitlab-org/gitlab-ce/blob/966f68b33e1f15f08e383ec68346ed1bd690b59b/doc/raketasks/backup_restore.md#upload-backups-to-remote-cloud-storage).