7 executable: /usr/local/bin/borg |
7 executable: /usr/local/bin/borg |
8 common_parameters: |
8 common_parameters: |
9 create_parameters: |
9 create_parameters: |
10 - exclude-from: $HOME/lib/borg-exclude-patterns.txt |
10 - exclude-from: $HOME/lib/borg-exclude-patterns.txt |
11 prune_parameters: |
11 prune_parameters: |
12 - daily: 7 |
12 # Set borg pruning parameters. The pruning interval is configured |
13 - weekly: 50 |
13 # in each separate backup. NOTE: Pruning parameters can also be |
|
14 # configured separately for each backup. |
|
15 # |
|
16 # Keep a daily archive for the last week |
|
17 - keep-daily: 7 |
|
18 # Keep a weely archive for the last year |
|
19 - keep-weekly: 52 |
|
20 # Keep a montly archive forever |
|
21 - keep-monthly: -1 |
|
22 # Set to true to enable a dry-run |
|
23 - dry-run: False |
14 |
24 |
15 # Repositories: configure here locations, passphrases, |
25 # Repositories: configure here locations, passphrases, |
16 # and general access parameters |
26 # and general access parameters |
17 repositories: |
27 repositories: |
18 - name: myserver |
28 - name: myserver |
33 # Backups: configure here which files should be backed up, how frequently, and to |
43 # Backups: configure here which files should be backed up, how frequently, and to |
34 # which repositires. |
44 # which repositires. |
35 backups: |
45 backups: |
36 # 1. Most files in $HOME to ssh://myserver.invalid |
46 # 1. Most files in $HOME to ssh://myserver.invalid |
37 - name: Home to 'myserver' |
47 - name: Home to 'myserver' |
|
48 # Scheduling mode: dreamtime/realtime/manual |
|
49 # Dreamtime scheduling discounts system sleep periods. |
|
50 scheduling: dreamtime |
38 # Backup every 24 hours |
51 # Backup every 24 hours |
39 backup_interval: 86400 |
52 backup_interval: 86400 |
40 # Retry every 15 minutes if unable to connect / unfinished backup |
53 # Retry every 15 minutes if unable to connect / unfinished backup |
41 retry_interval: 900 |
54 retry_interval: 900 |
42 # Scheduling mode: dreamtime/realtime/manual |
55 # Prune interval: once every two weeks |
43 # Dreamtime scheduling discounts system sleep periods. |
56 prune_interval: 1209600 |
44 scheduling: dreamtime |
57 # Repository and archive configuration |
45 repository: myserver |
58 repository: myserver |
46 archive_prefix: 'all@mylaptop-' |
59 archive_prefix: 'all@mylaptop-' |
47 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' |
60 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' |
|
61 # Files to include |
48 paths: |
62 paths: |
49 - $HOME |
63 - $HOME |
50 create_parameters: |
64 create_parameters: |
51 - pattern: "- $HOME/Downloads/" |
65 - pattern: "- $HOME/Downloads/" |
52 - pattern: "- $HOME/Library/Mail/V*/MailData/" |
66 - pattern: "- $HOME/Library/Mail/V*/MailData/" |
55 - pattern: "- $HOME/Library/" |
69 - pattern: "- $HOME/Library/" |
56 - pattern: "- $HOME/.config/borg/security/" |
70 - pattern: "- $HOME/.config/borg/security/" |
57 |
71 |
58 # 2. A subset of files $HOME more frequently to ssh://myserver.invalid |
72 # 2. A subset of files $HOME more frequently to ssh://myserver.invalid |
59 - name: Work to 'myserver' |
73 - name: Work to 'myserver' |
|
74 # Scheduling mode: dreamtime/realtime/manual |
|
75 scheduling: dreamtime |
60 # Backup every 3 hours |
76 # Backup every 3 hours |
61 backup_interval: 10800 |
77 backup_interval: 10800 |
62 # Retry every 15 minutes if unable to connect / unfinished backup |
78 # Retry every 15 minutes if unable to connect / unfinished backup |
63 retry_interval: 900 |
79 retry_interval: 900 |
64 # Scheduling mode: dreamtime/realtime/manual |
80 # Prune interval: once every two weeks |
65 # Dreamtime scheduling discounts system sleep periods. |
81 prune_interval: 1209600 |
66 scheduling: dreamtime |
82 # Repository and archive configuration |
67 repository: myserver |
83 repository: myserver |
68 archive_prefix: 'work@mylaptop-' |
84 archive_prefix: 'work@mylaptop-' |
69 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' |
85 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' |
70 paths: |
86 paths: |
71 - $HOME/work |
87 - $HOME/work |