„borgmatic-quickguide.md“ hinzufügen
This commit is contained in:
parent
ffa018a269
commit
ccedc4b679
1 changed files with 23 additions and 0 deletions
23
borgmatic-quickguide.md
Normal file
23
borgmatic-quickguide.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# borgmatic quickguide
|
||||
|
||||
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
|
||||
```
|
||||
location:
|
||||
source_directories:
|
||||
- /etc/
|
||||
- /home
|
||||
repositories:
|
||||
- borgbackup@BACKUPHOST:/home/borgbackup/repos/FQDN
|
||||
storage:
|
||||
encryption_passphrase: PASSPHRASE
|
||||
retention:
|
||||
keep_daily: 7
|
||||
keep_weekly: 4
|
||||
keep_monthly: 6
|
||||
keep_yearly: 1
|
||||
|
||||
```
|
Loading…
Reference in a new issue