#! /bin/bash # Rename this file to .borg-env and place it in your home directory # Set ssh key export BORG_RSH="ssh -i $HOME/.ssh/id_ed25519" # Setting this, so the repo does not need to be given on the commandline: export BORG_REPO="ssh://borguser@borgserver.com:22/~/backups/$USER/$HOST" # See the section "Passphrase notes" for more infos. export BORG_PASSPHRASE="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # This array must containing everything you want to include in the backup export BORG_TARGETS=("$HOME") # Exclude directories and files export BORG_EXCLUDE=("$HOME/.config/borg" "$HOME/.cache" "'*.db'") # [optional] Use a ntfy service to publish backup results # export NTFY=true # [optional] ntfy url with topic # export NTFY_URL="https://ntfy.sh/myborgbackup" # [optional] ntfy token # export NTFY_TOKEN="tk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"