if [ ! -d /archives/config ]; then
  dialog --title "Directory /archives/config not found" --msgbox " 
Then you can't LOAD the \
configurations." 9 60 
  exit
fi


dialog --yesno "   Do you want a BACKUP of all config ? " 6 60 

         if [ $? != 1 ]; then


  dialog --msgbox "	 	ATTENTION the save's name is BACKUP.TAR \n
	 THERE'S ONLY ONE FILE BACKUP.TAR BY DISK ! \n
         Please insert a DOS disk format \n
 			in the drive A " 10 70

                tar -czvf /tmp/`hostname`.TGZ /archives/config
                mcopy /tmp/`hostname`.TGZ a:
		rm /tmp/`hostname`.TGZ
                exit
                fi


cat << EOF > /tmp/choiscript
dialog --title "BACKUP of ONE CONFIGURATION" --menu "
You may choose one configuration. 
You can do that with the cursor.
" 20 68 9 \\
EOF
for VAR in /archives/config/* ; do
  VAR2=`basename $VAR `
  echo "\"$VAR2\" \"\" \\" >> /tmp/choiscript
done
echo "2> /tmp/choixligne" >> /tmp/choiscript

  . /tmp/choiscript
  if [ ! $? = 0 ]; then rm -f /tmp/choixligne /tmp/choiscript; exit 1; fi
  NOM="`cat /tmp/choixligne`"
  rm -f /tmp/choixligne/

  dialog --msgbox "          Please insert a DOS disk format \n
 			in the drive A " 10 70

  tar -czvf /tmp/$NOM.tgz /archives/config/$NOM

  mcopy /tmp/$NOM.tgz a: 

  rm -f /tmp/$NOM.tgz
