Skip to content
Snippets Groups Projects
Commit 4936bc48 authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

[IMP] add cache and update hostname

parent d647ddc2
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ version: "2.1" ...@@ -2,7 +2,7 @@ version: "2.1"
services: services:
backup_gitlab: backup_gitlab:
image: tecnativa/duplicity:postgres image: tecnativa/duplicity:postgres
hostname: backup-gitlab hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-gitlab
environment: environment:
DST: "swift://gitlab_{{ inventory_hostname|lower }}" DST: "swift://gitlab_{{ inventory_hostname|lower }}"
PGDATABASE: "none" PGDATABASE: "none"
...@@ -23,9 +23,11 @@ services: ...@@ -23,9 +23,11 @@ services:
command: command:
- /etc/periodic/daily/jobrunner - /etc/periodic/daily/jobrunner
volumes: volumes:
- gitlab_backup_cache:/root/.cache/duplicity/
- gitlab_config:/mnt/backup/src/config:z - gitlab_config:/mnt/backup/src/config:z
- /var/lib/docker/volumes/gitlab_data/_data/backups/:/mnt/backup/src/data_backups:z - /var/lib/docker/volumes/gitlab_data/_data/backups/:/mnt/backup/src/data_backups:z
volumes: volumes:
gitlab_backup_cache:
gitlab_config: gitlab_config:
external: true external: true
...@@ -2,7 +2,7 @@ version: "2.1" ...@@ -2,7 +2,7 @@ version: "2.1"
services: services:
backup_gitlab: backup_gitlab:
image: tecnativa/duplicity:postgres image: tecnativa/duplicity:postgres
hostname: backup-gitlab hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-gitlab
environment: environment:
DST: "swift://gitlab_{{ inventory_hostname|lower }}" DST: "swift://gitlab_{{ inventory_hostname|lower }}"
PGDATABASE: "none" PGDATABASE: "none"
...@@ -23,9 +23,11 @@ services: ...@@ -23,9 +23,11 @@ services:
command: command:
- /etc/periodic/daily/jobrunner - /etc/periodic/daily/jobrunner
volumes: volumes:
- gitlab_backup2_cache:/root/.cache/duplicity/
- gitlab_config:/mnt/backup/src/config:z - gitlab_config:/mnt/backup/src/config:z
- /var/lib/docker/volumes/gitlab_data/_data/backups/:/mnt/backup/src/data_backups:z - /var/lib/docker/volumes/gitlab_data/_data/backups/:/mnt/backup/src/data_backups:z
volumes: volumes:
gitlab_backup2_cache:
gitlab_config: gitlab_config:
external: true external: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment