TechDocs/TechnicalProcesses/Backup/BorgBase/config.yaml

location:
    source_directories:
        - ~
        # add or redefine if this is requested

    one_file_system: true
    repositories:
        - <REPLACE_WITH_BORGBASE_HOST>

    exclude_patterns:
        - '*.pyc'
        - ~/*/.cache
        - ~/.cache

    exclude_caches: true
    exclude_if_present: .nobackup

storage:
    compression: auto,zstd
    encryption_passphrase: <REPLACE_WITH_PASSWORD>
    archive_name_format: '{hostname}-{now}'

retention:
    keep_daily: 7
    keep_weekly: 4
    keep_monthly: 12
    keep_yearly: 2
    prefix: '{hostname}-'

consistency:
    checks:
        - disabled

    check_last: 3
    prefix: '{hostname}-'

hooks:
    # List of one or more shell commands or scripts to execute before creating a backup.
    before_backup:
        - echo "`date` - Starting backup"

    after_backup:
        - echo "`date` - Finished backup"

    on_error:
        - echo "`date` - ERROR during backup"

TechDocs/TechnicalProcesses/Backup/BorgBase/config.yaml (last edited 2019-06-24 12:14:42 by max.mehl)