config.example.yaml

Sun, 21 Jan 2018 14:56:56 +0000

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sun, 21 Jan 2018 14:56:56 +0000
changeset 33
91421eeb4426
parent 25
efa4c61c6f01
child 65
6fed67863b00
permissions
-rw-r--r--

Use rumps.application_support instead of xdg paths. Also separated branding into config.py

#
# Borgend example configuration file
#

borg:
 executable: /usr/local/bin/borg
 common_parameters:
 create_parameters:
  - exclude-from: $HOME/lib/borg-exclude-patterns.txt
 prune_parameters:
  - daily: 7
  - weekly: 50

backups:
 - name: Home to 'myserver'
   # Backup every 6 hours
   backup_interval: 21600
   # Retry every 15 minutes if unable to connect / unfinished backup
   retry_interval: 900
   repository: ssh://myserver.invalid/~/storage/borg
   archive_prefix: 'mylaptop-'
   archive_template: '{now:%Y-%m-%d_%H:%M:%S}'
   keychain_account: borg-backup@mylaptop
   paths:
    - $HOME
   common_parameters:
    # Borg is installed on remote host at ~/bin,
    # which might not be on path
    - remote-path: ~/bin/borg
   create_parameters:
    - compression: lzma
    - checkpoint-interval: 600
    - pattern: "- $HOME/Downloads/"
    - pattern: "- $HOME/Library/Mail/V*/MailData/"
    - pattern: "+ $HOME/Library/Mail/"
    - pattern: "+ $HOME/Library/Mobile Documents/"
    - pattern: "- $HOME/Library/"
    - pattern: "- $HOME/.config/borg/security/"

 - name: Home to 'backup1'
   # Manual backup
   backup_interval: 0
   retry_interval: 0
   repository: /Volumes/backup1/borg
   archive_prefix: 'mylaptop-'
   archive_template: '{now:%Y-%m-%d_%H:%M:%S}'
   _keychain_account: borg-backup@mylaptop
   paths:
    - $HOME
   create_parameters:
    - pattern: "- $HOME/Downloads/"
    - pattern: "- $HOME/Library/Mail/V*/MailData/"
    - pattern: "+ $HOME/Library/Mail/"
    - pattern: "+ $HOME/Library/Mobile Documents/"
    - pattern: "- $HOME/Library/"
    - pattern: "- $HOME/.config/borg/security/"

mercurial