Skip to content
Snippets Groups Projects
config.yaml.j2 838 B
Newer Older
  • Learn to ignore specific revisions
  • 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: {{ borgbackup_keep_within }}
      keep_daily: {{ borgbackup_keep_daily }}
      keep_weekly: {{ borgbackup_keep_weekly }}
      keep_monthly: {{ borgbackup_keep_monthly }}
      keep_yearly: {{ borgbackup_keep_yearly }}
    
    David Mehren's avatar
    David Mehren committed
    
    consistency:
      checks:
      - repository
      - archives
      check_last: 3