Skip to content
Snippets Groups Projects
config.yaml.j2 705 B
Newer Older
David Mehren's avatar
David Mehren committed
location:
  # List of source directories to backup. Globs are expanded.
  source_directories:
  {% for item in borgbackup_source_dirs %}
  - {{ item }}
  {% endfor %}

  # Paths to local or remote repositories.
  repositories:
  - borgbackup@{{ borgbackup_target_ip }}:backup

  exclude_patterns:
  {% for item in borgbackup_exclude_dirs %}
  - {{ item }}
  {% endfor %}


storage:
  compression: {{ borgbackup_compression }}
  encryption_passphrase: {{ borgbackup_key }}

retention:
# Retention policy for how many backups to keep in each category.
  keep_within: 7d
  keep_daily: 21
  keep_weekly: 8
  keep_monthly: 6
  keep_yearly: 0

consistency:
  checks:
  - repository
  - archives
  check_last: 3