Commit e3c50cf8 authored by iv's avatar iv

gitlab: add instance parameter to change backup frequency

parent 81bbbcea
...@@ -65,6 +65,8 @@ configuration.nginx_worker_processes = {{ multiprocessing.cpu_count() }} ...@@ -65,6 +65,8 @@ configuration.nginx_worker_processes = {{ multiprocessing.cpu_count() }}
# gitlab non-native parameters # gitlab non-native parameters
configuration.icp_license = configuration.icp_license =
# cron frequency for gitlab backup (default: every 4h)
configuration.backup_frequency = 0 */4 * * *
...@@ -841,8 +843,8 @@ command = ${logrotate:wrapper} ...@@ -841,8 +843,8 @@ command = ${logrotate:wrapper}
[cron-entry-gitlab-backup] [cron-entry-gitlab-backup]
<= cron-entry <= cron-entry
# run backup script every four hours # run backup script on a regular basis (given as instance parameter)
frequency = 0 */4 * * * frequency = ${instance-parameter:configuration.backup_frequency}
command = {{ gitlab_backup_pull }} command = {{ gitlab_backup_pull }}
# 6. on-reinstantiate actions # 6. on-reinstantiate actions
......
...@@ -301,7 +301,7 @@ md5sum = 176939a6428a7aca4767a36421b0af2b ...@@ -301,7 +301,7 @@ md5sum = 176939a6428a7aca4767a36421b0af2b
[instance-gitlab.cfg.in] [instance-gitlab.cfg.in]
<= download-file <= download-file
md5sum = cbe19d8aef2ebb05cee7c986f3c06108 md5sum = bad57d3eaa39f08e004fc3ae8681bbd0
[macrolib.cfg.in] [macrolib.cfg.in]
<= download-file <= download-file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment