Add encryption parameter to init
parent
3417e60531
commit
6cc0476000
|
|
@ -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 () {
|
||||||
|
|
|
||||||
|
|
@ -50,3 +50,6 @@ KEEP_YEARLY=5
|
||||||
#BORG_CHECK_ARGS=(
|
#BORG_CHECK_ARGS=(
|
||||||
# --info
|
# --info
|
||||||
#)
|
#)
|
||||||
|
#BORG_INIT_ARGS=(
|
||||||
|
# --encryption repokey-blake2
|
||||||
|
#)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue