Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible
roles
gitlab
Commits
de8315c9
Verified
Commit
de8315c9
authored
Nov 26, 2020
by
nd
Browse files
Options
Downloads
Patches
Plain Diff
add support to exclude any part from backup
parent
2cf91b86
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+1
-1
1 addition, 1 deletion
defaults/main.yml
tasks/backups.yml
+1
-1
1 addition, 1 deletion
tasks/backups.yml
tasks/gitlab.yml
+1
-2
1 addition, 2 deletions
tasks/gitlab.yml
with
3 additions
and
4 deletions
defaults/main.yml
+
1
−
1
View file @
de8315c9
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'
...
...
This diff is collapsed.
Click to expand it.
tasks/backups.yml
+
1
−
1
View file @
de8315c9
-
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
:
...
...
This diff is collapsed.
Click to expand it.
tasks/gitlab.yml
+
1
−
2
View file @
de8315c9
...
@@ -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
:
week
ly
special_time
:
dai
ly
-
name
:
install python modules needed for group sync
-
name
:
install python modules needed for group sync
apt
:
apt
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment