Language translations now possible!
#!/bin/shDRIVE=""while [ -z "$DRIVE" ] # Wait for device to be plugged indo DRIVE=`blkid -U 6b92c5e1-f49e-480e-87a0-8c1391a873c6 | cut -c6-9` sleep 2doneDEST=/mnt/$DRIVEwhile [ ! -e "$DEST" ] do; sleep 2; done # Wait for mount point to be createdERROR=`mount $DEST`if [ -n "$ERROR" ]then echo "Mount command failed and returned the following error:" echo $ERROR echo "Backup was not performed" exitfiecho "Starting backup now. Do not unplug the drive"#-------------Insert backup commands here ----------------------#---------------------------------------------------------------umount $DESTecho "Backup complete. It is now safe to unplug the drive"