vérification de la liste des archives avant de lancer la sauvegarde
This commit is contained in:
parent
903fef08b5
commit
4be772928d
16
borg-gui.sh
16
borg-gui.sh
@ -138,13 +138,19 @@ qu\nQUITTER\
|
||||
DossierPresent $borg_repo
|
||||
DossierPresent $borg_dir
|
||||
|
||||
if [ "$VarDossierPresent" != "false" ];then
|
||||
borg create $borg_excludes $borg_compress $borg_repo::$borg_archive $borg_dir | ZenityPulsate
|
||||
sync | ZenityPulsate
|
||||
zenity --notification --text "Sauvegarde $nomsauvegarde terminée"
|
||||
zenity $W --info --text "Sauvegarde $nomsauvegarde terminée"
|
||||
borg list --short $borg_repo | grep $borg_archive
|
||||
if [ "$?" = "0" ];then
|
||||
zenity --warning $W $iconborg --text "L'archive existe déjà."
|
||||
else
|
||||
if [ "$VarDossierPresent" != "false" ];then
|
||||
borg create $borg_excludes $borg_compress $borg_repo::$borg_archive $borg_dir | ZenityPulsate
|
||||
sync | ZenityPulsate
|
||||
zenity --notification --text "Sauvegarde $nomsauvegarde terminée"
|
||||
zenity $W --info --text "Sauvegarde $nomsauvegarde terminée"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
elif [ "$choixmenu" = "ms" ];then
|
||||
# Monter une archive
|
||||
BorgFilter
|
||||
|
Loading…
Reference in New Issue
Block a user