ajout des icônes borg
This commit is contained in:
parent
27c9b1dd89
commit
1aa05122be
22
borg-gui.sh
22
borg-gui.sh
@ -65,7 +65,7 @@ if [ ! $1 = "" ]; then
|
||||
. "$1"
|
||||
else
|
||||
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
|
||||
|
||||
if [ "$fichierprofil" = "" ]; then
|
||||
@ -107,7 +107,7 @@ ap\nAfficher le profil\n\
|
||||
--\n------------------------------------------\n\
|
||||
ed\nEspace disque utilisé : $(df -k --output=pcent $borg_repo | tail -n +2)\n\
|
||||
qu\nQuitter\
|
||||
" | zenity --list \
|
||||
" | zenity --window-icon=$HOME/.icons/borg.svg --list \
|
||||
--height=400 --width=400 \
|
||||
--title "BORG GUI : $nomsauvegarde" \
|
||||
--hide-header --hide-column=1 --column "id" --column "choix")
|
||||
@ -121,8 +121,8 @@ if [ "$choixmenu" = "cs" ] ;then
|
||||
DossierPresent $borg_dir
|
||||
|
||||
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..."
|
||||
sync | zenity --width=600 --progress --pulsate --auto-close --title="Synchronisation des écritures..."
|
||||
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 --window-icon=$HOME/.icons/borg.svg --progress --pulsate --auto-close --title="Synchronisation des écritures..."
|
||||
zenity --notification --text "Sauvegarde $nomsauvegarde terminée"
|
||||
zenity --width=600 --info --text "Sauvegarde $nomsauvegarde terminée"
|
||||
fi
|
||||
@ -131,9 +131,9 @@ elif [ "$choixmenu" = "ms" ];then
|
||||
# Monter une archive
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
mkdir $HOME/$borg_archive
|
||||
@ -143,7 +143,7 @@ elif [ "$choixmenu" = "ms" ];then
|
||||
elif [ "$choixmenu" = "dm" ];then
|
||||
# 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
|
||||
sleep 5 | 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
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
|
||||
@ -170,9 +170,9 @@ elif [ "$choixmenu" = "is" ];then
|
||||
# Information archive
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
if [ "$borg_archive" = "" ];then
|
||||
|
Loading…
Reference in New Issue
Block a user