Commit b285fdd570ed4f89080841a5cf35283e2e750576
1 parent
f184595d
Exists in
master
and in
4 other branches
Add reminder to limit backup lifetime with regular backups
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
README.md
@@ -384,6 +384,15 @@ There, add the following line to schedule the backup for everyday at 2 AM: | @@ -384,6 +384,15 @@ There, add the following line to schedule the backup for everyday at 2 AM: | ||
384 | 0 2 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create | 384 | 0 2 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create |
385 | ``` | 385 | ``` |
386 | 386 | ||
387 | +You may also want to set a limited lifetime for backups to prevent regular | ||
388 | +backups using all your disk space. To do this add the following lines to | ||
389 | +`/etc/gitlab/gitlab.rb` and reconfigure:- | ||
390 | + | ||
391 | +``` | ||
392 | +# limit backup lifetime to 4 days - 345600 seconds | ||
393 | +gitlab_rails['backup_keep_time'] = 345600 | ||
394 | +``` | ||
395 | + | ||
387 | ### Restoring an application backup | 396 | ### Restoring an application backup |
388 | 397 | ||
389 | We will assume that you have installed GitLab from an omnibus package and run | 398 | We will assume that you have installed GitLab from an omnibus package and run |