ajout du menu «espace disque utilisé»

ajout d'une notification «espace disque utilisé» lors d'un lancement d'une
sauvegarde
This commit is contained in:
Djan GICQUEL 2021-03-19 20:08:27 +01:00
parent 336b04ca27
commit b7b96b693d
1 changed files with 8 additions and 0 deletions

View File

@ -56,6 +56,9 @@ SauvegardeBorg () {
zenity --width=600 --height=500 --info --text="<tt>$(cd $dossierprofil && cat $fichierprofil)</tt>"
espacedisqueutil=$(df -k --output=pcent $borg_repo | tail -n +2)
zenity --width=600 --notification --text "Espace disque utilisé\n\n $espacedisqueutil"
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..."
zenity --notification --text "Sauvegarde $nomsauvegarde terminée"
@ -104,6 +107,7 @@ ss\nSupprimmer une archive\n\
is\nInformation archive\n\
id\nInformation sur le dépôt\n\
ap\nAfficher le profil\n\
ed\nEspace disque utilisé\n\
qu\nQuitter\
" | zenity --list \
--height=400 --width=400 \
@ -114,6 +118,10 @@ if [ "$choixmenu" = "cs" ] ;then
TestBorgRepo
SauvegardeBorg
elif [ "$choixmenu" = "ed" ] ;then
espacedisqueutil=$(df -k --output=pcent $borg_repo | tail -n +2)
zenity --width=600 --info --text "Espace disque utilisé\n\n $espacedisqueutil"
elif [ "$choixmenu" = "ms" ];then
borg_archive=$(borg list --short $borg_repo | zenity --height=500 --list --title "Listes des archives" --column "Archive")
mkdir $HOME/$borg_archive