Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
ef2e988f
Commit
ef2e988f
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Notifications during backup and restore
parent
7f552070
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-controlpanel
+8
-1
8 additions, 1 deletion
src/freedombone-controlpanel
with
8 additions
and
1 deletion
src/freedombone-controlpanel
+
8
−
1
View file @
ef2e988f
...
...
@@ -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"
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment