Code:TARGET="XX" build-usb-image.sh /media/hdd | tee /tmp/NFI-Backup.log wait 3 if [ -f "/media/usb/etbackupstick" -o -f "/media/usb/etbackupstick.txt" ] then TARGET="/media/usb" elif [ -f "/media/sdb1/etbackupstick" -o -f "/media/sdb1/etbackupstick.txt" ] then TARGET = "/media/sdb1" elif [ -f "/media/sdc1/etbackupstick" -o -f "/media/sdc1/etbackupstick.txt" ] then TARGET = "/media/sdc1" elif [ -f "/media/sdd1/etbackupstick" -o -f "/media/sdd1/etbackupstick.txt" ] then TARGET = "/media/sdd1" fi if [ $TARGET = "XX" ] then echo else echo please wait... cp -r /media/hdd/et9000/ $TARGET sleep 3 umount $TARGET sleep 5 echo Backup finished and copied to your USB-stick echo echo REMOVE YOUR USB STICK NOW !!! fi