#!/bin/bash ########################################################################### # # Copyright (c) 2020-2022 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file restore.sh # # @author (last) Peter Lucia # @date (last) 09-Jul-2020 # @author (original) Peter Lucia # @date (original) 06-Jul-2020 # ############################################################################ 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"