Add encryption parameter to init

dev
hk 2019-09-17 11:27:47 +02:00
parent 3417e60531
commit 6cc0476000
2 changed files with 9 additions and 1 deletions

View File

@ -32,7 +32,12 @@ error_handler () {
} }
borg_init () { borg_init () {
${BORG} init "${BORG_REPO}" if [[ -z ${BORG_INIT_ARGS[@]} ]]; then
BORG_INIT_ARGS=(
--encryption repokey-blake2
)
fi
${BORG} init "${BORG_INIT_ARGS[@]}" "${BORG_REPO}"
} }
borg_backup () { borg_backup () {

View File

@ -50,3 +50,6 @@ KEEP_YEARLY=5
#BORG_CHECK_ARGS=( #BORG_CHECK_ARGS=(
# --info # --info
#) #)
#BORG_INIT_ARGS=(
# --encryption repokey-blake2
#)