From b285fdd570ed4f89080841a5cf35283e2e750576 Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Tue, 24 Jun 2014 10:15:32 +0100 Subject: [PATCH] Add reminder to limit backup lifetime with regular backups --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index 656a28e..1a58f4b 100644 --- a/README.md +++ b/README.md @@ -384,6 +384,15 @@ There, add the following line to schedule the backup for everyday at 2 AM: 0 2 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create ``` +You may also want to set a limited lifetime for backups to prevent regular +backups using all your disk space. To do this add the following lines to +`/etc/gitlab/gitlab.rb` and reconfigure:- + +``` +# limit backup lifetime to 4 days - 345600 seconds +gitlab_rails['backup_keep_time'] = 345600 +``` + ### Restoring an application backup We will assume that you have installed GitLab from an omnibus package and run -- libgit2 0.21.2