diff --git a/README.md b/README.md index 5345901..1919809 100644 --- a/README.md +++ b/README.md @@ -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 -- libgit2 0.21.2