Skip to content
Snippets Groups Projects
Verified Commit 71d1f730 authored by Felix Schäfer's avatar Felix Schäfer :construction_worker:
Browse files

Remove borgbackup

parent ade12a9e
No related branches found
No related tags found
No related merge requests found
Pipeline #272842 passed
...@@ -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
```
...@@ -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
......
...@@ -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:
......
[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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment