Centos 7 - Восстановление базы данных mysql из файлов данных .frm и .ibd

Я решил с помощью этого кода:

sorgente=$1
destinazione=$2

echo "\n Sorgente:  $sorgente \n" 
echo "\n Destinazione:  $destinazione \n"


cd "$sorgente"

for i in *.JPG
do

  #controllo che la directory sia leggibile
   if test -r "$i" 
   then

     #controllo che il file $i non sia presente nella destinazione
       if test -r "$2" 
         then 
            #in questo caso è presente nella destinazione
            # mv "$i" "$destinazione/duplicati"  

           # else
            mv "$i" "$destinazione"
       fi

  else
       echo "il file $i non è leggibile da questo utente"

   fi

done
1
25.05.2015, 09:00
0 ответов

Теги

Похожие вопросы