„borgmatic-quickguide.md“ ändern

This commit is contained in:
DeltaLima 2023-06-25 01:53:48 +02:00
parent 21d826db54
commit 6988c9540b

View file

@ -3,15 +3,15 @@
1. ssh-keygen # without passphrase
2. echo 'command="borg serve --restrict-to-repository /home/borgbackup/repos/FQDN",restrict ' $(cat ~/.ssh/id_rsa.pub) | ssh borgbackup@BACKUPHOST -c "cat - >> ~/.ssh/authorized_keys"
3. borg init -e repokey borgbackup@BACKUPHOST:repos/FQDN # you have to enter a PASSPHRASE (`pwgen 24 1`)
3. mkdir -p /etc/borgmatic/
4. /etc/borgmatic/config.yml
4. mkdir -p /etc/borgmatic/
5. /etc/borgmatic/config.yml
```
location:
source_directories:
- /etc/
- /home/
repositories:
- borgbackup@BACKUPHOST:/home/borgbackup/repos/FQDN
- borgbackup@BACKUPHOST:repos/FQDN
storage:
encryption_passphrase: PASSPHRASE
retention:
@ -21,3 +21,9 @@ retention:
keep_yearly: 1
```
6. /etc/cron.daily/borgmatic
```
#!/bin/sh
borgmatic
```
chmod +x /etc/cron.daily/borgmatic