#!/bin/bash backup_file="paths.ini.BAK0" dest=/opt/squishqt/etc/paths.ini read -p "Enter the paths.ini backup file to restore to: " -e -i "$backup_file" backup_file sudo cp $backup_file $dest echo "Restored $backup_file to $dest"