Compare commits

...

2 Commits

View File

@ -316,7 +316,7 @@ fi
[[ -z "${BORG_LOG_DIR}" ]] && BORG_LOG_DIR="${DEFAULT_BORG_LOG_DIR}"
BORG_LOG_FILE="${BORG_LOG_DIR}//borg-backup.log"
BORG_LOG_FILE="${BORG_LOG_DIR}/borg2-backup.log"
[[ -z "${NC_DB_BACKUP_DIR}" ]] && NC_DB_BACKUP_DIR="${DEFAULT_NC_DB_BACKUP_DIR}"
@ -570,7 +570,7 @@ fi
echononl "Create borg backup.."
cat << EOF >> ${BORG_LOG_FILE}
borg \\
borg2 \\
--remote-path borg2 \\
--repo ${BORG_URL} \\
create \\
@ -593,7 +593,7 @@ borg \\
${BORG_BACKUP_DIRS}
EOF
borg \
borg2 \
--remote-path borg2 \
--repo ${BORG_URL} \
create \
@ -630,7 +630,7 @@ fi
echononl "Pruning repository.."
cat << EOF >> ${BORG_LOG_FILE}
borg \\
borg2 \\
--remote-path borg2 \\
--repo ${BORG_URL} \\
prune \\
@ -642,7 +642,7 @@ borg \\
--keep-yearly ${KEEP_YEARLY} \\
EOF
borg \
borg2 \
--remote-path borg2 \
--repo ${BORG_URL} \
prune \