# A normal config would be placed in the current user's come directory, # typically under ~/.config/optools/backup.json { "repos": { "web": { "paths": ["/srv/http"], "password": "PASSWORD1", # OBVIOUSLY, change all these. "excludes": ["/srv/http/sks/dumps"] # you can specify paths to exclude. }, "etc": { "paths": ["/etc"], "password": "PASSWORD2" }, "home": { "paths": ["/home"], "password": "PASSWORD3" }, "misc": { "paths": ["/usr/local/bin", "/var/lib/awstats", "/var/spool/anacron", "/var/spool/cron", "/usr/local/bin", "/root/.bak/misc"], "prep": ["miscBak('apacman')"], # i'm... thinking of ways to make this more flexible, but for now it supports pacman/apacman "password": "PASSWORD4" }, "root": { "paths": ["/root"], "password": "PASSWORD5", "excludes": ["/root/.cache", "/root/.bak", "*.sql*"] } }, "config": { "user": "username", # the username on your backup box "host": "backups.domain.tld", # where the borg server is "ctx": "ssh -p 1234" # if you run a borg-specific SSHD on an alternate port } }