config.example.yaml

changeset 65
6fed67863b00
parent 25
efa4c61c6f01
child 74
4f56142e7497
equal deleted inserted replaced
64:6cfe6a89e810 65:6fed67863b00
10 prune_parameters: 10 prune_parameters:
11 - daily: 7 11 - daily: 7
12 - weekly: 50 12 - weekly: 50
13 13
14 backups: 14 backups:
15 # 1. Most files in $HOME to ssh://myserver.invalid
15 - name: Home to 'myserver' 16 - name: Home to 'myserver'
16 # Backup every 6 hours 17 # Backup every 24 hours
17 backup_interval: 21600 18 backup_interval: 86400
18 # Retry every 15 minutes if unable to connect / unfinished backup 19 # Retry every 15 minutes if unable to connect / unfinished backup
19 retry_interval: 900 20 retry_interval: 900
20 repository: ssh://myserver.invalid/~/storage/borg 21 repository: ssh://myserver.invalid/~/storage/borg
21 archive_prefix: 'mylaptop-' 22 archive_prefix: 'all@mylaptop-'
22 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' 23 archive_template: '{now:%Y-%m-%d_%H:%M:%S}'
23 keychain_account: borg-backup@mylaptop 24 keychain_account: borg-backup@mylaptop
24 paths: 25 paths:
25 - $HOME 26 - $HOME
26 common_parameters: 27 common_parameters:
35 - pattern: "+ $HOME/Library/Mail/" 36 - pattern: "+ $HOME/Library/Mail/"
36 - pattern: "+ $HOME/Library/Mobile Documents/" 37 - pattern: "+ $HOME/Library/Mobile Documents/"
37 - pattern: "- $HOME/Library/" 38 - pattern: "- $HOME/Library/"
38 - pattern: "- $HOME/.config/borg/security/" 39 - pattern: "- $HOME/.config/borg/security/"
39 40
41 # 2. A subset of files $HOME more frequently to ssh://myserver.invalid
42 - name: Work to 'myserver'
43 # Backup every 3 hours
44 backup_interval: 10800
45 # Retry every 15 minutes if unable to connect / unfinished backup
46 retry_interval: 900
47 repository: ssh://myserver.invalid/~/storage/borg
48 archive_prefix: 'work@mylaptop-'
49 archive_template: '{now:%Y-%m-%d_%H:%M:%S}'
50 keychain_account: borg-backup@mylaptop
51 paths:
52 - $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
61 # 3. Manual backup to external hard drive
40 - name: Home to 'backup1' 62 - name: Home to 'backup1'
41 # Manual backup 63 # Manual backup
42 backup_interval: 0 64 backup_interval: 0
43 retry_interval: 0 65 retry_interval: 0
44 repository: /Volumes/backup1/borg 66 repository: /Volumes/backup1/borg

mercurial