Adjust subject format on borgwrapper send, add more examples on how to configure borgwrapper
This commit is contained in:
parent
d4d124a513
commit
ca9b168d17
4 changed files with 29 additions and 3 deletions
|
@ -189,7 +189,7 @@ backup() {
|
||||||
|
|
||||||
if [ "${BORGWRAPPER_BACKUP_NOTIFY_VIA_MAIL}" = true ]; then
|
if [ "${BORGWRAPPER_BACKUP_NOTIFY_VIA_MAIL}" = true ]; then
|
||||||
local hostname=$(hostname)
|
local hostname=$(hostname)
|
||||||
cat ${BORGWRAPPER_BACKUP_LOG_FILE}|mailx -Ssendwait -s "[borgwrapper on ${hostname} for ${BORGWRAPPER_BACKUP_NAME}]" ${BORGWRAPPER_BACKUP_NOTIFY_MAIL_ADDRESS};
|
cat ${BORGWRAPPER_BACKUP_LOG_FILE}|mailx -Ssendwait -s "[borgwrapper on ${hostname}] ${BORGWRAPPER_BACKUP_REPOSITORY}${BORGWRAPPER_BACKUP_NAME}::${BORGWRAPPER_BACKUP_TIMESTAMP_FORMAT} finished" ${BORGWRAPPER_BACKUP_NOTIFY_MAIL_ADDRESS};
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
22
usr/share/doc/borgwrapper/borgwrapper.conf.remote.example
Normal file
22
usr/share/doc/borgwrapper/borgwrapper.conf.remote.example
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
#BORG_RSH="ssh -i /path/to/another/rsa_key/.ssh/backup-key"
|
||||||
|
BORGWRAPPER_BACKUP_NAME="backup-name"
|
||||||
|
BORGWRAPPER_BACKUP_REPOSITORY="ssh://user@remoteHost:Port/./"
|
||||||
|
BORGWRAPPER_BACKUP_FILES=(\
|
||||||
|
'/etc/' \
|
||||||
|
'$HOME/' \
|
||||||
|
)
|
||||||
|
BORGWRAPPER_BACKUP_ENCRYPTION="repokey-blake2"
|
||||||
|
BORGWRAPPER_BACKUP_PASSWORD="secretPassword"
|
||||||
|
BORGWRAPPER_BORG_CREATE_PARAMS="create -v -s -p --exclude-from /path/to/.borgwrapper.exclude"
|
||||||
|
BORGWRAPPER_BACKUP_LOG=true
|
||||||
|
BORGWRAPPER_BACKUP_NOTIFY_VIA_MAIL=true
|
||||||
|
BORGWRAPPER_BACKUP_NOTIFY_MAIL_ADDRESS="alias@domain.tld"
|
||||||
|
|
||||||
|
borgwrapper_pre_backup() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
borgwrapper_post_backup() {
|
||||||
|
return;
|
||||||
|
}
|
4
usr/share/doc/borgwrapper/borgwrapper.exclude.example
Normal file
4
usr/share/doc/borgwrapper/borgwrapper.exclude.example
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
/proc/**
|
||||||
|
/var/log/**
|
||||||
|
*/build/**
|
||||||
|
*/node_modules/**
|
Loading…
Reference in a new issue