Skip to content
Snippets Groups Projects
Commit 0d41aef1 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Merge branch 'cron-up' into 'master'

Cron Up
parents 4df3782d 9a0fc12e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -86,6 +86,21 @@ sudo gitlab-rake gitlab:backup:create
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.
 
### Scheduling a backup
To schedule a cron job that backs up your repositories and GitLab metadata, use the root user:
```
sudo su -
crontab -e
```
There, add the following line to schedule the backup for everyday at 2 AM:
```
0 2 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create
```
### Restoring an application backup
 
We will assume that you have installed GitLab from an omnibus package and run
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment