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