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
c242ddc2
Commit
c242ddc2
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Simple usb backups which don't use cryptfs
parent
d830d8bc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/freedombone-backup-local
+6
-1
6 additions, 1 deletion
src/freedombone-backup-local
src/freedombone-restore-local
+6
-1
6 additions, 1 deletion
src/freedombone-restore-local
src/freedombone-utils-backup
+5
-2
5 additions, 2 deletions
src/freedombone-utils-backup
with
17 additions
and
4 deletions
src/freedombone-backup-local
+
6
−
1
View file @
c242ddc2
...
...
@@ -375,7 +375,12 @@ remove_option="$2"
if
[[
"
$backup_device
"
==
"remove"
]]
;
then
remove_option
=
$1
fi
if
[[
"
$backup_device
"
==
"detect"
||
"
$backup_device
"
==
"auto"
*
]]
;
then
simple_backup
=
if
[[
"
$backup_device
"
==
"simple"
||
"
$backup_device
"
==
"detect"
||
"
$backup_device
"
==
"auto"
*
]]
;
then
if
[[
"
$backup_device
"
==
"simple"
]]
;
then
# shellcheck disable=SC2034
simple_backup
=
1
fi
backup_device
=
$(
detect_connected_drives
)
if
[[
"
$backup_device
"
!=
'sd'
*
]]
;
then
echo
$'No backup device was detected'
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-restore-local
+
6
−
1
View file @
c242ddc2
...
...
@@ -967,7 +967,12 @@ function get_restore_app {
backup_device
=
"
$1
"
if
[[
"
$backup_device
"
==
"detect"
||
"
$backup_device
"
==
"auto"
*
]]
;
then
simple_backup
=
if
[[
"
$backup_device
"
==
"simple"
||
"
$backup_device
"
==
"detect"
||
"
$backup_device
"
==
"auto"
*
]]
;
then
if
[[
"
$backup_device
"
==
"simple"
]]
;
then
# shellcheck disable=SC2034
simple_backup
=
1
fi
backup_device
=
$(
detect_connected_drives
)
if
[[
"
$backup_device
"
!=
'sd'
*
]]
;
then
echo
$'No backup device was detected'
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-backup
+
5
−
2
View file @
c242ddc2
...
...
@@ -181,8 +181,11 @@ function backup_mount_drive {
cryptsetup close encrypted_usb
# mount the encrypted backup drive
if
cryptsetup open
--type
luks
"
$USB_DRIVE
"
encrypted_usb
;
then
USB_DRIVE
=
/dev/mapper/encrypted_usb
# shellcheck disable=SC2154,SC2086
if
[
!
$simple_backup
]
;
then
if
cryptsetup open
--type
luks
"
$USB_DRIVE
"
encrypted_usb
;
then
USB_DRIVE
=
/dev/mapper/encrypted_usb
fi
fi
if
!
mount
"
$USB_DRIVE
"
"
$USB_MOUNT
"
;
then
echo
$"There was a problem mounting the USB drive to
$USB_MOUNT
"
...
...
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