correction de l'exclusion des fichiers de sauvegardes

This commit is contained in:
Didier Denoual 2024-10-14 08:57:47 +02:00
parent a85dc70718
commit bc3069d784

View File

@ -121,6 +121,7 @@ Post_Sauvegarde() {
}
Sauvegarde() {
[ -f "${BORG_EXCLUDE_BACKUP}" ] && S_EXCU="--exclude-from ${BORG_EXCLUDE_BACKUP}" || S_EXCU=""
Pre_Sauvegarde
BACKUP_PRE=$?
borg create \
@ -130,7 +131,7 @@ Sauvegarde() {
--show-rc \
--exclude 'home/*/.cache/*' \
--exclude 'var/tmp/*' \
--exclude-from ${BORG_EXCLUDE_BACKUP}\
${S_EXCU} \
::$(date +%Y-%m-%d-%H-%M-%S-%A)-{hostname} \
${LISTREPSAUV} >>${BORGLOG} 2>>${BORGLOG}
BACKUP_EXIT=$?