24 lines
778 B
Bash
24 lines
778 B
Bash
#! /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")
|
|
|
|
# [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" |