ajout de l'option --exclude-caches à la sauvegarde
les fichiers contenant CACHEDIR.TAG sont exclus par défaut
This commit is contained in:
parent
b54a7e0f0c
commit
32957fd39e
@ -245,7 +245,7 @@ fi
|
||||
else
|
||||
if [ "$VarDossierPresent" != "false" ];then
|
||||
log="/tmp/borg-zenity-$borg_archive-$(date +%H-%M-%S).log"
|
||||
borg create ${borg_excludes} ${borg_compress} "$borg_repo"::"$borg_archive" . 2> "$log" | zenity $W $iconborg --progress --pulsate --auto-close --no-cancel --text "Sauvegarde en cours..." --title "borg-zenity"
|
||||
borg create ${borg_excludes} ${borg_compress} --exclude-caches "$borg_repo"::"$borg_archive" . 2> "$log" | zenity $W $iconborg --progress --pulsate --auto-close --no-cancel --text "Sauvegarde en cours..." --title "borg-zenity"
|
||||
chmod 777 "$log"
|
||||
if [ $(wc -c "$log" | cut -f1 -d " ") -gt 1 ] ;then
|
||||
zenity $W --error --title "borg-zenity erreur" --text "$(cat $log)"
|
||||
|
Loading…
Reference in New Issue
Block a user