backup_simresults.sh 681 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. FileList=( Sim.SimInfo backup_settings progversion.txt )
  3. SimResultsNr=$1
  4. BackupDir=$2
  5. if [ -d $BackupDir ]
  6. then
  7. echo "BackupDir $BackupDir exists"
  8. else
  9. echo "mkdir $BackupDir -m 775"
  10. mkdir $BackupDir -m 775
  11. fi
  12. for file in ${FileList[*]}
  13. do
  14. echo "cp $file $BackupDir"
  15. cp $file $BackupDir
  16. done
  17. echo "cp *$1*eps $BackupDir"
  18. cp *$1*eps $BackupDir
  19. echo "cp *$1.xml $BackupDir"
  20. cp *$1.xml $BackupDir
  21. echo "cp *spikes*TEST$1.bin $BackupDir"
  22. cp *spikes*TEST$1.bin $BackupDir
  23. echo "cp *.inp.datTEST$1 $BackupDir"
  24. cp *.inp.datTEST$1 $BackupDir
  25. echo "cp *.inp.dat $BackupDir"
  26. cp *.inp.dat $BackupDir
  27. echo "cp *Layer.info $BackupDir"
  28. cp *Layer.info $BackupDir