ajout des icônes borg

This commit is contained in:
Djan GICQUEL 2021-07-23 20:43:24 +02:00
parent 27c9b1dd89
commit 1aa05122be

View File

@ -65,7 +65,7 @@ if [ ! $1 = "" ]; then
. "$1" . "$1"
else else
cd $dossierprofil cd $dossierprofil
fichierprofil=$(ls -1 *.txt | zenity --height=500 --width=600 --list --title "Liste des profils" --hide-header --column "profil") && . $fichierprofil fichierprofil=$(ls -1 *.txt | zenity --height=500 --width=600 --window-icon=$HOME/.icons/borg.svg --list --title "Liste des profils" --hide-header --column "profil") && . $fichierprofil
fi fi
if [ "$fichierprofil" = "" ]; then if [ "$fichierprofil" = "" ]; then
@ -107,7 +107,7 @@ ap\nAfficher le profil\n\
--\n------------------------------------------\n\ --\n------------------------------------------\n\
ed\nEspace disque utilisé : $(df -k --output=pcent $borg_repo | tail -n +2)\n\ ed\nEspace disque utilisé : $(df -k --output=pcent $borg_repo | tail -n +2)\n\
qu\nQuitter\ qu\nQuitter\
" | zenity --list \ " | zenity --window-icon=$HOME/.icons/borg.svg --list \
--height=400 --width=400 \ --height=400 --width=400 \
--title "BORG GUI : $nomsauvegarde" \ --title "BORG GUI : $nomsauvegarde" \
--hide-header --hide-column=1 --column "id" --column "choix") --hide-header --hide-column=1 --column "id" --column "choix")
@ -121,8 +121,8 @@ if [ "$choixmenu" = "cs" ] ;then
DossierPresent $borg_dir DossierPresent $borg_dir
if [ "$VarDossierPresent" != "false" ];then if [ "$VarDossierPresent" != "false" ];then
borg create $borg_excludes $borg_compress $borg_repo::$borg_archive $borg_dir | zenity --width=600 --progress --pulsate --auto-close --title="Sauvegarde en cours..." borg create $borg_excludes $borg_compress $borg_repo::$borg_archive $borg_dir | zenity --width=600 --window-icon=$HOME/.icons/borg.svg --progress --pulsate --auto-close --title="Sauvegarde en cours..."
sync | zenity --width=600 --progress --pulsate --auto-close --title="Synchronisation des écritures..." sync | zenity --width=600 --window-icon=$HOME/.icons/borg.svg --progress --pulsate --auto-close --title="Synchronisation des écritures..."
zenity --notification --text "Sauvegarde $nomsauvegarde terminée" zenity --notification --text "Sauvegarde $nomsauvegarde terminée"
zenity --width=600 --info --text "Sauvegarde $nomsauvegarde terminée" zenity --width=600 --info --text "Sauvegarde $nomsauvegarde terminée"
fi fi
@ -131,9 +131,9 @@ elif [ "$choixmenu" = "ms" ];then
# Monter une archive # Monter une archive
if [ "$filter" = "" ];then if [ "$filter" = "" ];then
borg_archive=$(borg list --short $borg_repo | zenity --height=500 --list --title "Listes des archives" --column "Archive") borg_archive=$(borg list --short $borg_repo | zenity --height=500 --window-icon=$HOME/.icons/borg.svg --list --title "Listes des archives" --column "Archive")
else else
borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --list --title "Listes des archives" --column "Archive") borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --window-icon=$HOME/.icons/borg.svg --list --title "Listes des archives" --column "Archive")
fi fi
mkdir $HOME/$borg_archive mkdir $HOME/$borg_archive
@ -143,7 +143,7 @@ elif [ "$choixmenu" = "ms" ];then
elif [ "$choixmenu" = "dm" ];then elif [ "$choixmenu" = "dm" ];then
# Demonter une archive # Demonter une archive
ptnmontage=$(mount | grep borgfs | cut -d" " -f3 | zenity --width=500 --height=400 --list --title "Liste des points de montages" --column "Archive") ptnmontage=$(mount | grep borgfs | cut -d" " -f3 | zenity --width=500 --height=400 --window-icon=$HOME/.icons/borg.svg --list --title "Liste des points de montages" --column "Archive")
fusermount -u $ptnmontage | zenity --width=600 --progress --pulsate --auto-close fusermount -u $ptnmontage | zenity --width=600 --progress --pulsate --auto-close
sleep 5 | zenity --width=600 --progress --pulsate --auto-close sleep 5 | zenity --width=600 --progress --pulsate --auto-close
rmdir $ptnmontage | zenity --width=600 --progress --pulsate --auto-close rmdir $ptnmontage | zenity --width=600 --progress --pulsate --auto-close
@ -152,9 +152,9 @@ elif [ "$choixmenu" = "ss" ];then
# Supprimmer une archive # Supprimmer une archive
if [ "$filter" = "" ];then if [ "$filter" = "" ];then
borg_archive=$(borg list --short $borg_repo | zenity --height=500 --list --title "Listes des archives" --column "Archive") borg_archive=$(borg list --short $borg_repo | zenity --height=500 --window-icon=$HOME/.icons/borg.svg --list --title "Listes des archives" --column "Archive")
else else
borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --list --title "Listes des archives" --column "Archive") borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --window-icon=$HOME/.icons/borg.svg --list --title "Listes des archives" --column "Archive")
fi fi
@ -170,9 +170,9 @@ elif [ "$choixmenu" = "is" ];then
# Information archive # Information archive
if [ "$filter" = "" ];then if [ "$filter" = "" ];then
borg_archive=$(borg list --short $borg_repo | zenity --height=500 --list --title "Listes des archives" --column "Archive") borg_archive=$(borg list --short $borg_repo | zenity --height=500 --window-icon=$HOME/.icons/borg.svg --list --title "Listes des archives" --column "Archive")
else else
borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --list --title "Listes des archives" --column "Archive") borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --window-icon=$HOME/.icons/borg.svg --list --title "Listes des archives" --column "Archive")
fi fi
if [ "$borg_archive" = "" ];then if [ "$borg_archive" = "" ];then