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