correction de l'exclusion des fichiers de sauvegardes
This commit is contained in:
parent
a85dc70718
commit
bc3069d784
@ -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=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user