Trying to automate backups. When I execute this script…
#!/bin/bash
while true; do
echo "Select an option:"
echo "1. DRAWER"
echo "2. WD500"
echo "3. SEAGATE 2.5
echo "4. Exit"
read -p "Enter your choice: " choice
case $choice in
1) mount --uuid e6044f7f-1167-4904-a50a-5114ddee9253 /mnt/out
rsync -av --delete --exclude '.cache' /home/ion/ /mnt/out
umount /dev/disk/by-uuid/e6044f7f-1167-4904-a50a-5114ddee9253 /mnt/out;;
4) echo "Exiting..."; exit 0 ;;
*) echo "Invalid option" ;;
esac
done
I get this error…
[ion@ion-desk BASH]$ ./bubox1.sh
./bubox1.sh: line 18: unexpected EOF while looking for matching `"'
[ion@ion-desk BASH]$
I can’t see what I’m doing wrong. Please advise.