bash << 'EOF'
server="server_placeholder"
type="type_placeholder"
user="user_placeholder"

if [ ! -e /root/bin/sshrestore ];
    then echo \"Datacycle Backups are not enabled on $server\";
    exit;
fi

whiptail --title " WARNING " --msgbox "Disconnecting while running this command can cause irreversible user data loss." 24 60
whiptail --title " WARNING " --msgbox "Please DOUBLE CHECK you've entered the correct account below and that you intend to OVERWRITE user data. \n$(/root/bin/ui $user)" 24 78

read -p "Are you sure you want to continue to restore the $type backup for $user on $server (y/n)?\" answer1;
case ${answer1:0:1} in
    y|Y )
        echo Yes;
        /root/bin/sshrestore --user $user --type $type;
    ;;
    * )
        echo No;
        exit;
    ;;
esac
EOF
