I have a small bash menu for carrying out various tasks, i'd like to add in a backup option with different locations i'm using the following code
Code:
backups() {
clear
echo "Backup Control"
echo
select CHOICE in 'Backup System' 'Backup Home'
do
case "$CHOICE" in
"Backup System")
After i've selected 'Backup System' or 'Backup Home' i'd like it to give me the option of a location ie
1) Local
2) External Disk
ie local would be /backups external disk would be /dev/sda1 what i'd like to know is how to create this extra bit of the menu. I'm guessing it would be using read and if?
thanks