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
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSI Ansible
Gitlab
Commits
71d1f730
Verified
Commit
71d1f730
authored
4 months ago
by
Felix Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
Remove borgbackup
parent
ade12a9e
No related branches found
No related tags found
No related merge requests found
Pipeline
#272842
passed
4 months ago
Stage: linting
Changes
4
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+0
-21
0 additions, 21 deletions
README.md
defaults/main.yml
+0
-1
0 additions, 1 deletion
defaults/main.yml
tasks/main.yml
+0
-27
0 additions, 27 deletions
tasks/main.yml
templates/gitlab_dump.service.j2
+0
-11
0 additions, 11 deletions
templates/gitlab_dump.service.j2
with
0 additions
and
60 deletions
README.md
+
0
−
21
View file @
71d1f730
...
@@ -13,24 +13,3 @@ You can find all possible options at https://gitlab.com/gitlab-org/omnibus-gitla
...
@@ -13,24 +13,3 @@ You can find all possible options at https://gitlab.com/gitlab-org/omnibus-gitla
## Setup hints
## Setup hints
-
Disable normal sign-up/log-in
-
Disable normal sign-up/log-in
## Restore
-
Restore borg backup
```
shell script
# Stop web services
> gitlab-ctl stop unicorn
> gitlab-ctl stop puma
> gitlab-ctl stop sidekiq
# Drop database
> gitlab-rake gitlab:db:drop_tables
# Restore database
> gitlab-rake gitlab:backup:db:restore
# Restore repository contents
> gitlab-rake gitlab:backup:repo:restore
# Setup authorized_keys
> gitlab-rake gitlab:shell:setup
# Clear cache
> gitlab-rake cache:clear
# Start all services
> gitlab-ctl start
```
This diff is collapsed.
Click to expand it.
defaults/main.yml
+
0
−
1
View file @
71d1f730
...
@@ -7,7 +7,6 @@ gitlab_download_validate_certs: true
...
@@ -7,7 +7,6 @@ gitlab_download_validate_certs: true
gitlab_config_path_prefix
:
"
"
gitlab_config_path_prefix
:
"
"
gitlab_external_postgres
:
false
gitlab_external_postgres
:
false
gitlab_use_borgbackup
:
false
gitlab_enable_plantuml
:
false
gitlab_enable_plantuml
:
false
gitlab_enable_offline_registry_cleanup
:
true
# needs to be disabled if using registry-metadata-database
gitlab_enable_offline_registry_cleanup
:
true
# needs to be disabled if using registry-metadata-database
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
0
−
27
View file @
71d1f730
...
@@ -90,33 +90,6 @@
...
@@ -90,33 +90,6 @@
group
:
root
group
:
root
mode
:
"
0644"
mode
:
"
0644"
-
name
:
Copy gitlab-dump service
ansible.builtin.template
:
src
:
gitlab_dump.service.j2
dest
:
/etc/systemd/system/gitlab_dump.service
mode
:
'
0644'
when
:
gitlab_use_borgbackup
-
name
:
Enable gitlab-dump service
ansible.builtin.systemd
:
name
:
"
gitlab_dump.service"
enabled
:
true
daemon_reload
:
true
when
:
gitlab_use_borgbackup
-
name
:
Configure backups
ansible.builtin.include_role
:
name
:
borgbackup_client
vars
:
borgbackup_source_dirs
:
# noqa var-naming[no-role-prefix]
-
"
/var/opt/gitlab/backups"
-
"
/var/opt/gitlab/gitlab-rails"
-
"
/var/opt/gitlab/gitlab-ci/builds"
-
"
/var/opt/gitlab/gitlab-pages"
-
"
/etc/gitlab"
-
"
/etc/ssh"
when
:
gitlab_use_borgbackup
-
name
:
Install postgres client binaries
-
name
:
Install postgres client binaries
when
:
gitlab_external_postgres
when
:
gitlab_external_postgres
block
:
block
:
...
...
This diff is collapsed.
Click to expand it.
templates/gitlab_dump.service.j2
deleted
100644 → 0
+
0
−
11
View file @
ade12a9e
[Unit]
Description=Creates an GitLab Repository Backup
Before=borgbackup.service
[Service]
Type=oneshot
ExecStart=/usr/bin/gitlab-rake gitlab:backup:repo:create INCREMENTAL=true
{% if not gitlab_external_postgres %}ExecStart=/usr/bin/gitlab-rake gitlab:backup:db:create{% endif %}
[Install]
RequiredBy=borgbackup.service
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