Sélectionner une révision Git
-
Rémi - Le Filament a rédigéRémi - Le Filament a rédigé
backup.yaml.j2 1,51 Kio
version: "2.1"
services:
backup_privatebin:
image: remifilament/duplicity:postgres # Until https://github.com/Tecnativa/docker-duplicity/pull/324 is merged
# image: ghcr.io/tecnativa/docker-duplicity-postgres:master # Once https://github.com/Tecnativa/docker-duplicity/pull/324 is merged
hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-privatebin
environment:
DST: "swift://privatebin_{{ inventory_hostname|lower }}"
PGDATABASE: "none"
PGPASSWORD: "none"
PGUSER: "none"
PASSPHRASE: "{{ privatebin_backup_pass | default(srv_proxy_pass) }}"
SWIFT_USERNAME: "{{ swift_odoo_username }}"
SWIFT_PASSWORD: "{{ swift_odoo_password }}"
SWIFT_AUTHURL: "{{ swift_odoo_authurl }}"
SWIFT_AUTHVERSION: {{ swift_odoo_authversion }}
SWIFT_TENANTNAME: "{{ swift_odoo_tenantname }}"
SWIFT_TENANTID: "{{ swift_odoo_tenantid }}"
SWIFT_REGIONNAME: "{{ swift_odoo_regionname }}"
JOB_200_WHEN: "never"
JOB_300_WHAT: "backup --full-if-older-than 6D"
JOB_302_WHAT: "dup remove-all-but-n-full 5 --force $$DST $$@"
JOB_302_WHEN: "daily"
volumes:
- privatebin_backup_cache:/root/.cache/duplicity/
- privatebin_data:/mnt/backup/src/privatebin:z
command:
- /etc/periodic/daily/jobrunner
volumes:
privatebin_backup_cache:
privatebin_data:
external: true