Sélectionner une révision Git
-
Rémi - Le Filament a rédigéRémi - Le Filament a rédigé
backup2.yaml.j2 1,35 Kio
version: "2.1"
services:
backup_privatebin:
image: tecnativa/duplicity:postgres
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_odoo2_username }}"
SWIFT_PASSWORD: "{{ swift_odoo2_password }}"
SWIFT_AUTHURL: "{{ swift_odoo2_authurl }}"
SWIFT_AUTHVERSION: {{ swift_odoo2_authversion }}
SWIFT_TENANTNAME: "{{ swift_odoo2_tenantname }}"
SWIFT_TENANTID: "{{ swift_odoo2_tenantid }}"
SWIFT_REGIONNAME: "{{ swift_odoo2_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"
OPTIONS: "--allow-source-mismatch"
volumes:
- privatebin_backup2_cache:/root/.cache/duplicity/
- privatebin_data:/mnt/backup/src/privatebin:z
command:
- /etc/periodic/daily/jobrunner
volumes:
privatebin_backup2_cache:
privatebin_data:
external: true