grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

borgmatic.md (1170B)


      1 # borgmatic
      2 
      3 ```
      4 apt-get update && apt-get install borgbackup borgmatic
      5 mkdir /etc/borgmatic/
      6 generate-borgmatic-config --destination /etc/borgmatic/config.yaml
      7 ```
      8 * on debian 12.4 borgmatic version is 1.7.7 so use old `generate-borgmatic-config` command
      9 * make changes to config
     10 ```
     11 location:
     12     source_directories:
     13         - /path/to/directory01
     14         - /path/to/directory02
     15     repositories:
     16         - ssh://<repo>@<repo>.repo.borgbase.com/./repo
     17 storage:
     18     encryption_passphrase: "this is a secure passphrase"
     19     ssh_command: ssh -i /path/to/ssh_key
     20 retention:
     21     keep_daily: 7
     22     keep_weekly: 4
     23     keep_monthly: 6
     24     keep_yearly: 1
     25 consistency:
     26     checks:
     27         - name: repository
     28         - name: archives
     29         frequency: 1 week
     30 hooks:
     31     ntfy:
     32         topic: borg
     33         server: https://ntfy.sh
     34         finish:
     35             title: $HOSTNAME -> borgbase
     36             message: borgmatic finished successfully
     37             priority: min
     38         fail:
     39             title: $HOSTNAME -> borgbase
     40             message: borgmatic failed
     41             priority: urgent
     42         states:
     43             - finish
     44             - fail
     45 ```
     46 
     47 https://torsion.org/borgmatic/