Skip to content
Extraits de code Groupes Projets
backup2.yaml.j2 1,35 ko
Newer Older
  • Learn to ignore specific revisions
  • Rémi - Le Filament's avatar
    Rémi - Le Filament a validé
    version: "2.1"
    services:
        backup_privatebin:
            image: tecnativa/duplicity:postgres
    
            hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-privatebin
    
    Rémi - Le Filament's avatar
    Rémi - Le Filament a validé
            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"
    
    Rémi - Le Filament's avatar
    Rémi - Le Filament a validé
            volumes:
    
                - privatebin_backup2_cache:/root/.cache/duplicity/
    
    Rémi - Le Filament's avatar
    Rémi - Le Filament a validé
                - privatebin_data:/mnt/backup/src/privatebin:z
            command:
                - /etc/periodic/daily/jobrunner
    
    volumes:
    
        privatebin_backup2_cache:
    
    Rémi - Le Filament's avatar
    Rémi - Le Filament a validé
        privatebin_data:
            external: true