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