Skip to content
Snippets Groups Projects
Commit ef2e988f authored by Bob Mottram's avatar Bob Mottram
Browse files

Notifications during backup and restore

parent 7f552070
No related branches found
No related tags found
No related merge requests found
......@@ -906,7 +906,11 @@ function backup_data {
echo $"Detected USB drive $USB_DRIVE"
echo ''
echo $'Enter the passphrase for your LUKS encrypted backup drive:'
"${PROJECT_NAME}-backup-local"
if "${PROJECT_NAME}-backup-local"; then
${PROJECT_NAME}-notification -m $"Backup completed successfully" -s "Backup status"
else
${PROJECT_NAME}-notification -m $"Backup failed" -s "Backup status"
fi
any_key
}
......@@ -1031,12 +1035,15 @@ function restore_data_from_storage {
$restore_command "${app_name}"
retcode="$?"
if [[ "$retcode" != "0" ]]; then
${PROJECT_NAME}-notification -m $"Restore of ${app_name} failed with code $retcode" -s "Restore app status"
any_key
dialog --title $"Restore apps from USB" \
--msgbox $"Restore of ${app_name} failed with code $retcode" 6 60
return
fi
${PROJECT_NAME}-notification -m $"Restore of ${app_name} succeeded" -s "Restore app status"
# finished
if [[ "$1" == "local" ]]; then
dialog --title $"Restore apps from USB" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment