Skip to content
Snippets Groups Projects
Verified Commit de8315c9 authored by nd's avatar nd
Browse files

add support to exclude any part from backup

parent 2cf91b86
Branches
No related tags found
No related merge requests found
gitlab: gitlab:
backup: backup:
enable: True enable: True
disable_repositories: False disable_part: []
keep_days: 9 keep_days: 9
external_url: 'https://localhost' external_url: 'https://localhost'
path: '/var/opt/gitlab/backups' path: '/var/opt/gitlab/backups'
......
- name: add gitlab-rake backup cronjob - name: add gitlab-rake backup cronjob
cron: cron:
name: gitlab-rake backup name: gitlab-rake backup
job: "/opt/gitlab/bin/gitlab-rake gitlab:backup:create CRON=1{% if gitlab.backup.disable_repositories %} SKIP=repositories{%endif%}" job: "/opt/gitlab/bin/gitlab-rake gitlab:backup:create CRON=1{% if gitlab.backup.disable_part %} SKIP={{ gitlab.backup.disable_part|join(',') }}{%endif%}"
special_time: daily special_time: daily
- name: add gitlab-tar backup cronjob - name: add gitlab-tar backup cronjob
cron: cron:
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
apt: apt:
pkg: gitlab-ce pkg: gitlab-ce
- name: copy gitlab.rb - name: copy gitlab.rb
template: src=gitlab.rb.j2 dest=/etc/gitlab/gitlab.rb mode=0600 owner=root group=root template: src=gitlab.rb.j2 dest=/etc/gitlab/gitlab.rb mode=0600 owner=root group=root
notify: notify:
...@@ -12,7 +11,7 @@ ...@@ -12,7 +11,7 @@
cron: cron:
name: gitlab registry cleanup name: gitlab registry cleanup
job: '/opt/gitlab/bin/gitlab-ctl registry-garbage-collect -m 2>/dev/null >/dev/null' job: '/opt/gitlab/bin/gitlab-ctl registry-garbage-collect -m 2>/dev/null >/dev/null'
special_time: weekly special_time: daily
- name: install python modules needed for group sync - name: install python modules needed for group sync
apt: apt:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment