„borgmatic-quickguide.md“ ändern

This commit is contained in:
DeltaLima 2023-06-25 01:59:15 +02:00
parent 0b76e5be73
commit 40e1eb56e5

View file

@ -1,9 +1,9 @@
# borgmatic quickguide # borgmatic quickguide
1. ssh-keygen # without passphrase 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" 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. `borg init -e repokey borgbackup@BACKUPHOST:repos/FQDN` # you have to enter a PASSPHRASE (`pwgen 24 1`)
4. mkdir -p /etc/borgmatic/ 4. `mkdir -p /etc/borgmatic/`
5. /etc/borgmatic/config.yml 5. /etc/borgmatic/config.yml
``` ```
location: location:
@ -26,5 +26,5 @@ retention:
#!/bin/sh #!/bin/sh
borgmatic borgmatic
``` ```
7. chmod +x /etc/cron.daily/borgmatic 7. `chmod +x /etc/cron.daily/borgmatic`
8. `BACKUPHOST:~$ borg list --format '{archive}{NL}' repos/FQDN` # list backups from backupserver 8. `BACKUPHOST:~$ borg list --format '{archive}{NL}' repos/FQDN` # list backups from backupserver