Tags
  1. https://torsion.org
  2. ai borgbackup borgmatic pwgen
  3. pwgen -1cns 32

init

  1. borg init --encryption=repokey borg@BSIP:/home/borg/$HOST
  2. borg key export

Change the Passphrase

  1. export BORG_REPO="ssh://borg@BSIP/home/borg/$HOST"
  2. borg key change-passphrase

ssh keys

  1. ssh-keygen -t ed25519 
  2. ssh-copy-id -i .ssh/id_ed25519.pub borg@BSIP
  3. chmod 600 .ssh/id_ed25519
  4. eval "$(ssh-agent -s)"
  5. ssh-add .ssh/id_ed25519

Borg Server

  1. borg export BORG_REPO=/home/borg/$HOST
  2. borg list
  3. 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
  1. sc-status borgmatic.timer
  2. sc-enable borgmatic.timer
  3. sc-start borgmatic.timer