1 # |
1 # |
2 # Borgend example configuration file |
2 # Borgend example configuration file |
3 # |
3 # |
4 |
4 |
|
5 # General parameters for borg |
5 borg: |
6 borg: |
6 executable: /usr/local/bin/borg |
7 executable: /usr/local/bin/borg |
7 common_parameters: |
8 common_parameters: |
8 create_parameters: |
9 create_parameters: |
9 - exclude-from: $HOME/lib/borg-exclude-patterns.txt |
10 - exclude-from: $HOME/lib/borg-exclude-patterns.txt |
10 prune_parameters: |
11 prune_parameters: |
11 - daily: 7 |
12 - daily: 7 |
12 - weekly: 50 |
13 - weekly: 50 |
13 |
14 |
|
15 # Repositories: configure here locations, passphrases, |
|
16 # and general access parameters |
|
17 repositories: |
|
18 - name: myserver |
|
19 location: ssh://myserver.invalid/~/storage/borg |
|
20 keychain_account: borg-backup@mylaptop |
|
21 # Borg parameters |
|
22 common_parameters: |
|
23 # Borg is installed on remote host at ~/bin, which might not be on path |
|
24 - remote-path: ~/bin/borg |
|
25 create_parameters: |
|
26 - compression: lzma |
|
27 - checkpoint-interval: 600 |
|
28 |
|
29 - name: backup1 |
|
30 location: /Volumes/backup1/borg |
|
31 keychain_account: borg-backup@mylaptop |
|
32 |
|
33 # Backups: configure here which files should be backed up, how frequently, and to |
|
34 # which repositires. |
14 backups: |
35 backups: |
15 # 1. Most files in $HOME to ssh://myserver.invalid |
36 # 1. Most files in $HOME to ssh://myserver.invalid |
16 - name: Home to 'myserver' |
37 - name: Home to 'myserver' |
17 # Backup every 24 hours |
38 # Backup every 24 hours |
18 backup_interval: 86400 |
39 backup_interval: 86400 |
19 # Retry every 15 minutes if unable to connect / unfinished backup |
40 # Retry every 15 minutes if unable to connect / unfinished backup |
20 retry_interval: 900 |
41 retry_interval: 900 |
21 repository: ssh://myserver.invalid/~/storage/borg |
42 repository: myserver |
22 archive_prefix: 'all@mylaptop-' |
43 archive_prefix: 'all@mylaptop-' |
23 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' |
44 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' |
24 keychain_account: borg-backup@mylaptop |
45 paths: |
25 paths: |
46 - $HOME |
26 - $HOME |
47 create_parameters: |
27 common_parameters: |
48 - pattern: "- $HOME/Downloads/" |
28 # Borg is installed on remote host at ~/bin, |
49 - pattern: "- $HOME/Library/Mail/V*/MailData/" |
29 # which might not be on path |
50 - pattern: "+ $HOME/Library/Mail/" |
30 - remote-path: ~/bin/borg |
51 - pattern: "+ $HOME/Library/Mobile Documents/" |
31 create_parameters: |
52 - pattern: "- $HOME/Library/" |
32 - compression: lzma |
53 - pattern: "- $HOME/.config/borg/security/" |
33 - checkpoint-interval: 600 |
|
34 - pattern: "- $HOME/Downloads/" |
|
35 - pattern: "- $HOME/Library/Mail/V*/MailData/" |
|
36 - pattern: "+ $HOME/Library/Mail/" |
|
37 - pattern: "+ $HOME/Library/Mobile Documents/" |
|
38 - pattern: "- $HOME/Library/" |
|
39 - pattern: "- $HOME/.config/borg/security/" |
|
40 |
54 |
41 # 2. A subset of files $HOME more frequently to ssh://myserver.invalid |
55 # 2. A subset of files $HOME more frequently to ssh://myserver.invalid |
42 - name: Work to 'myserver' |
56 - name: Work to 'myserver' |
43 # Backup every 3 hours |
57 # Backup every 3 hours |
44 backup_interval: 10800 |
58 backup_interval: 10800 |
45 # Retry every 15 minutes if unable to connect / unfinished backup |
59 # Retry every 15 minutes if unable to connect / unfinished backup |
46 retry_interval: 900 |
60 retry_interval: 900 |
47 repository: ssh://myserver.invalid/~/storage/borg |
61 repository: myserver |
48 archive_prefix: 'work@mylaptop-' |
62 archive_prefix: 'work@mylaptop-' |
49 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' |
63 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' |
50 keychain_account: borg-backup@mylaptop |
|
51 paths: |
64 paths: |
52 - $HOME/work |
65 - $HOME/work |
53 common_parameters: |
|
54 # Borg is installed on remote host at ~/bin, |
|
55 # which might not be on path |
|
56 - remote-path: ~/bin/borg |
|
57 create_parameters: |
|
58 - compression: lzma |
|
59 - checkpoint-interval: 600 |
|
60 |
66 |
61 # 3. Manual backup to external hard drive |
67 # 3. Manual backup to external hard drive |
62 - name: Home to 'backup1' |
68 - name: Home to 'backup1' |
63 # Manual backup |
69 # Manual backup |
64 backup_interval: 0 |
70 backup_interval: 0 |
65 retry_interval: 0 |
71 retry_interval: 0 |
66 repository: /Volumes/backup1/borg |
72 repository: backup1 |
67 archive_prefix: 'mylaptop-' |
73 archive_prefix: 'mylaptop-' |
68 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' |
74 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' |
69 _keychain_account: borg-backup@mylaptop |
|
70 paths: |
75 paths: |
71 - $HOME |
76 - $HOME |
72 create_parameters: |
77 create_parameters: |
73 - pattern: "- $HOME/Downloads/" |
78 - pattern: "- $HOME/Downloads/" |
74 - pattern: "- $HOME/Library/Mail/V*/MailData/" |
79 - pattern: "- $HOME/Library/Mail/V*/MailData/" |
75 - pattern: "+ $HOME/Library/Mail/" |
80 - pattern: "+ $HOME/Library/Mail/" |
76 - pattern: "+ $HOME/Library/Mobile Documents/" |
81 - pattern: "+ $HOME/Library/Mobile Documents/" |
77 - pattern: "- $HOME/Library/" |
82 - pattern: "- $HOME/Library/" |
78 - pattern: "- $HOME/.config/borg/security/" |
83 - pattern: "- $HOME/.config/borg/security/" |
|
84 |
|
85 |