Skip to content
Snippets Groups Projects
Commit be493bea authored by Job van der Voort's avatar Job van der Voort
Browse files

daily backup in readme

parent 4df3782d
No related branches found
No related tags found
1 merge request!64Cron Up
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 * * * 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