config.example.yaml

changeset 65
6fed67863b00
parent 25
efa4c61c6f01
child 74
4f56142e7497
--- a/config.example.yaml	Thu Jan 25 22:34:55 2018 +0000
+++ b/config.example.yaml	Thu Jan 25 22:42:01 2018 +0000
@@ -12,13 +12,14 @@
   - weekly: 50
 
 backups:
+ # 1. Most files in $HOME to ssh://myserver.invalid
  - name: Home to 'myserver'
-   # Backup every 6 hours
-   backup_interval: 21600
+   # Backup every 24 hours
+   backup_interval: 86400
    # Retry every 15 minutes if unable to connect / unfinished backup
    retry_interval: 900
    repository: ssh://myserver.invalid/~/storage/borg
-   archive_prefix: 'mylaptop-'
+   archive_prefix: 'all@mylaptop-'
    archive_template: '{now:%Y-%m-%d_%H:%M:%S}'
    keychain_account: borg-backup@mylaptop
    paths:
@@ -37,6 +38,27 @@
     - pattern: "- $HOME/Library/"
     - pattern: "- $HOME/.config/borg/security/"
 
+ # 2. A subset of files $HOME more frequently to ssh://myserver.invalid
+ - name: Work to 'myserver'
+   # Backup every 3 hours
+   backup_interval: 10800
+   # Retry every 15 minutes if unable to connect / unfinished backup
+   retry_interval: 900
+   repository: ssh://myserver.invalid/~/storage/borg
+   archive_prefix: 'work@mylaptop-'
+   archive_template: '{now:%Y-%m-%d_%H:%M:%S}'
+   keychain_account: borg-backup@mylaptop
+   paths:
+    - $HOME/work
+   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
+
+ # 3. Manual backup to external hard drive
  - name: Home to 'backup1'
    # Manual backup
    backup_interval: 0

mercurial