borg2-backup-nc.sh: replace 'borg' with 'botg2'.
This commit is contained in:
parent
3abe57d09b
commit
9ffba2d84b
@ -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 1 \\
|
||||
EOF
|
||||
|
||||
borg \
|
||||
borg2 \
|
||||
--remote-path borg2 \
|
||||
--repo ${BORG_URL} \
|
||||
prune \
|
||||
|
Loading…
Reference in New Issue
Block a user