config.example.yaml

changeset 97
96d5adbe0205
parent 76
4b08fca3ce34
equal deleted inserted replaced
96:de8ac6c470d8 97:96d5adbe0205
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
74 - name: Home to 'backup1' 90 - name: Home to 'backup1'
75 # Manual backup 91 # Manual backup
76 scheduling: manual 92 scheduling: manual
77 backup_interval: 0 93 backup_interval: 0
78 retry_interval: 0 94 retry_interval: 0
95 prune_interval: 0
79 repository: backup1 96 repository: backup1
80 archive_prefix: 'mylaptop-' 97 archive_prefix: 'mylaptop-'
81 archive_template: '{now:%Y-%m-%d_%H:%M:%S}' 98 archive_template: '{now:%Y-%m-%d_%H:%M:%S}'
82 paths: 99 paths:
83 - $HOME 100 - $HOME

mercurial