summaryrefslogtreecommitdiffstats
path: root/modules/borgmatic/templates/config.yaml
blob: 8f460327a26aa2f8bf4b39311f690f4f7b151bbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
location:
    source_directories:
        - /home
        - /etc
        - /usr/local/bin
<%- @extra_paths.each do |path| -%>
        - <%= path %>
<%- end -%>
    repositories:
        - ssh://borg@<%= @borgmatic_host %>:<%= @current_hostname %>
    atime: false
    exclude_patterns:
        - /home/*/.cache
        - /home/*/.cargo
        - /home/*/.rustup
        - /home/doy/coding/*/target
        - /home/doy/mnt
        - /home/doy/tmp

storage:
    encryption_passphrase: '<%= @escaped_borgmatic_passphrase %>'
    ssh_command: /usr/bin/ssh -i /etc/borgmatic/borg_ssh_key -o StrictHostKeyChecking=no

retention:
    keep_daily: 7
    keep_weekly: 4
    keep_monthly: 12
    keep_yearly: 1000