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}"
|
[[ -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}"
|
[[ -z "${NC_DB_BACKUP_DIR}" ]] && NC_DB_BACKUP_DIR="${DEFAULT_NC_DB_BACKUP_DIR}"
|
||||||
|
|
||||||
@ -570,7 +570,7 @@ fi
|
|||||||
echononl "Create borg backup.."
|
echononl "Create borg backup.."
|
||||||
|
|
||||||
cat << EOF >> ${BORG_LOG_FILE}
|
cat << EOF >> ${BORG_LOG_FILE}
|
||||||
borg \\
|
borg2 \\
|
||||||
--remote-path borg2 \\
|
--remote-path borg2 \\
|
||||||
--repo ${BORG_URL} \\
|
--repo ${BORG_URL} \\
|
||||||
create \\
|
create \\
|
||||||
@ -593,7 +593,7 @@ borg \\
|
|||||||
${BORG_BACKUP_DIRS}
|
${BORG_BACKUP_DIRS}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
borg \
|
borg2 \
|
||||||
--remote-path borg2 \
|
--remote-path borg2 \
|
||||||
--repo ${BORG_URL} \
|
--repo ${BORG_URL} \
|
||||||
create \
|
create \
|
||||||
@ -630,7 +630,7 @@ fi
|
|||||||
echononl "Pruning repository.."
|
echononl "Pruning repository.."
|
||||||
|
|
||||||
cat << EOF >> ${BORG_LOG_FILE}
|
cat << EOF >> ${BORG_LOG_FILE}
|
||||||
borg \\
|
borg2 \\
|
||||||
--remote-path borg2 \\
|
--remote-path borg2 \\
|
||||||
--repo ${BORG_URL} \\
|
--repo ${BORG_URL} \\
|
||||||
prune \\
|
prune \\
|
||||||
@ -642,7 +642,7 @@ borg \\
|
|||||||
--keep-yearly 1 \\
|
--keep-yearly 1 \\
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
borg \
|
borg2 \
|
||||||
--remote-path borg2 \
|
--remote-path borg2 \
|
||||||
--repo ${BORG_URL} \
|
--repo ${BORG_URL} \
|
||||||
prune \
|
prune \
|
||||||
|
Loading…
Reference in New Issue
Block a user