- https://torsion.org
- ai borgbackup
- USERHOST=USER@IP-BACKUPSERVER
init
- borg init --encryption=repokey $USERHOST
- borg key export USER@BACKUPSERVER | tee ~/.borg_passphrase
Change the Passphrase
- export BORG_REPO="ssh://$USERHOST/home/borg/$HOST"
- borg key change-passphrase
ssh keys
- ssh-keygen -t ed25519
- ssh-copy-id -i .ssh/id_ed25519.pub $USERHOST
- chmod 600 .ssh/id_ed25519
- eval "$(ssh-agent -s)"
- ssh-add .ssh/id_ed25519
Borg Server
- borg export BORG_REPO=/home/borg/$HOST
- borg list
- borg info
borgmatic
- ai borgmatic
- generate-borgmatic-config
egrep -v '#|^$' /etc/borgmatic/config.yaml
location:
source_directories:
- /home
- /etc
- /root
repositories:
- ssh://borg@BSIP/home/borg/HOSTNAME
storage:
encryption_passphrase: "PP"
retention:
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
keep_yearly: 1
- sc-status borgmatic.timer
- sc-enable borgmatic.timer
- sc-start borgmatic.timer