- https://torsion.org
- ai borgbackup borgmatic pwgen
- pwgen -1cns 32
init
- borg init --encryption=repokey borg@BSIP:/home/borg/$HOST
- borg key export
Change the Passphrase
- export BORG_REPO="ssh://borg@BSIP/home/borg/$HOST"
- borg key change-passphrase
ssh keys
- ssh-keygen -t ed25519
- ssh-copy-id -i .ssh/id_ed25519.pub borg@BSIP
- 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
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