From be493bea11ea017ae6d60007892fa1d6d0c563e5 Mon Sep 17 00:00:00 2001 From: Job van der Voort Date: Wed, 12 Mar 2014 21:50:41 +0100 Subject: [PATCH] daily backup in readme --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+), 0 deletions(-) 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