873 B
873 B
borgmatic quickguide
ssh-keygen
# without passphraseecho 'command="borg serve --restrict-to-repository /home/borgbackup/repos/FQDN",restrict ' $(cat ~/.ssh/id_rsa.pub) |ssh borgbackup@BACKUPHOST -c "cat - >> ~/.ssh/authorized_keys"
borg init -e repokey borgbackup@BACKUPHOST:repos/FQDN
# you have to enter a PASSPHRASE (pwgen 24 1
)mkdir -p /etc/borgmatic/
- /etc/borgmatic/config.yml
location:
source_directories:
- /etc/
- /home/
repositories:
- borgbackup@BACKUPHOST:repos/FQDN
storage:
encryption_passphrase: PASSPHRASE
retention:
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
keep_yearly: 1
- /etc/cron.daily/borgmatic
#!/bin/sh
borgmatic
chmod +x /etc/cron.daily/borgmatic
BACKUPHOST:~$ borg list --format '{archive}{NL}' repos/FQDN
# list backups from backupserver