My backup scripts and tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Jim Paris 552e929247 Fix apt commandline 2 years ago
Makefile Fix apt commandline 2 years ago
README.md Fix some issues in generated scripts; make passphrase non-executable 2 years ago
borg-setup.sh Fix apt commandline 2 years ago

README.md

Design

  • On bucket, we have a separate user account “jim-backups”. Password for this account is in bitwarden.

  • Repository keys are repokeys, with passphrases saved on clients and in bitwarden.

  • Each client has two SSH keys: one for append-only operation (no pass) and one for read-write (password in bitwarden)

  • Pruning requires the password and is a manual operation (run sudo /opt/borg/prune.sh)

  • Systemd timers start daily backups

Usage

Run on client:

wget https://psy.jim.sh/borg-setup.sh
sudo ./borg-setup.sh