01b3054fbe8aebc485c034448b90414717f4a2ab
glossary.md
| ... | ... | @@ -39,7 +39,6 @@ |
| 39 | 39 | * [ffmpeg](/linux/ffmpeg) |
| 40 | 40 | * [firewalld](/networking/firewalld) |
| 41 | 41 | * [flatpak](/linux/flatpak) |
| 42 | -* [fonts](/linux/fonts) |
|
| 43 | 42 | * [freebsd](/unix/freebsd) |
| 44 | 43 | * [ftp](/software/ftp) |
| 45 | 44 | |
| ... | ... | @@ -55,7 +54,6 @@ |
| 55 | 54 | * [httpd](/software/httpd) |
| 56 | 55 | |
| 57 | 56 | ## i |
| 58 | -* [i3lock](/linux/i3lock) |
|
| 59 | 57 | * [index](/linux/index) |
| 60 | 58 | * [init](/linux/init) |
| 61 | 59 | * [iptables](/networking/iptables) |
| ... | ... | @@ -145,7 +143,6 @@ |
| 145 | 143 | * [tcpdump](/software/tcpdump) |
| 146 | 144 | * [tmux](/software/tmux) |
| 147 | 145 | * [trezor](/hardware/trezor) |
| 148 | -* [truncate](/linux/truncate) |
|
| 149 | 146 | |
| 150 | 147 | ## u |
| 151 | 148 | * [usenet](/software/usenet) |
software/borgbase.md
| ... | ... | @@ -0,0 +1,12 @@ |
| 1 | +# borgbase |
|
| 2 | + |
|
| 3 | +* create repo on web console |
|
| 4 | +* add new ssh key if required |
|
| 5 | + * add key to repo in settings |
|
| 6 | +* on system run init command |
|
| 7 | + * copy repo url from web console |
|
| 8 | + * use `BORG_RSH` to point to key |
|
| 9 | +``` |
|
| 10 | +BORG_RSH="ssh -i /root/.ssh/id_ed25519" ; borg init -e repokey-blake2 ssh://<repo>@<repo>.repo.borgbase.com/./repo |
|
| 11 | +``` |
|
| 12 | +* create archives either with [borg](borg) or [borgmatic](borgmatic) |
software/borgmatic.md
| ... | ... | @@ -0,0 +1,47 @@ |
| 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/ |