|
1 # |
|
2 # Borgend example configuration file |
|
3 # |
|
4 |
|
5 borg: |
|
6 executable: /usr/local/bin/borg |
|
7 common_parameters: |
|
8 create_parameters: |
|
9 - exclude-from: $HOME/lib/borg-exclude-patterns.txt |
|
10 prune_parameters: |
|
11 - daily: 7 |
|
12 - weekly: 50 |
|
13 |
|
14 backups: |
|
15 - name: Home to 'myserver' |
|
16 # Backup every 6 hours |
|
17 backup_interval: 21600 |
|
18 # Retry every 15 minutes if unable to connect / unfinished backup |
|
19 retry_interval: 900 |
|
20 repository: ssh://myserver.invalid/~/storage/borg |
|
21 archive_prefix: 'mylaptop-' |
|
22 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' |
|
23 keychain_account: borg-backup@mylaptop |
|
24 paths: |
|
25 - $HOME |
|
26 common_parameters: |
|
27 # Borg is installed on remote host at ~/bin, |
|
28 # which might not be on path |
|
29 - remote-path: ~/bin/borg |
|
30 create_parameters: |
|
31 - compression: lzma |
|
32 - checkpoint-interval: 600 |
|
33 - pattern: "- $HOME/Downloads/" |
|
34 - pattern: "- $HOME/Library/Mail/V*/MailData/" |
|
35 - pattern: "+ $HOME/Library/Mail/" |
|
36 - pattern: "+ $HOME/Library/Mobile Documents/" |
|
37 - pattern: "- $HOME/Library/" |
|
38 - pattern: "- $HOME/.config/borg/security/" |
|
39 |
|
40 - name: Home to 'backup1' |
|
41 # Manual backup |
|
42 backup_interval: 0 |
|
43 retry_interval: 0 |
|
44 repository: /Volumes/backup1/borg |
|
45 archive_prefix: 'mylaptop-' |
|
46 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' |
|
47 _keychain_account: borg-backup@mylaptop |
|
48 paths: |
|
49 - $HOME |
|
50 create_parameters: |
|
51 - pattern: "- $HOME/Downloads/" |
|
52 - pattern: "- $HOME/Library/Mail/V*/MailData/" |
|
53 - pattern: "+ $HOME/Library/Mail/" |
|
54 - pattern: "+ $HOME/Library/Mobile Documents/" |
|
55 - pattern: "- $HOME/Library/" |
|
56 - pattern: "- $HOME/.config/borg/security/" |