Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iml-backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
IML Open Source
iml-backup
Commits
91eaa1a7
Commit
91eaa1a7
authored
4 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
2021-01-29 bort on empty passphrase
parent
04998e6f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
transfer.sh
+7
-3
7 additions, 3 deletions
transfer.sh
with
7 additions
and
3 deletions
transfer.sh
+
7
−
3
View file @
91eaa1a7
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
# 2019-10-30 ah,ds v1.9 for rsync targets: create remote target dir with ssh command
# 2019-10-30 ah,ds v1.9 for rsync targets: create remote target dir with ssh command
# 2020-01-21 ah,ds v1.10 show colored OK or FAILED at the end of output
# 2020-01-21 ah,ds v1.10 show colored OK or FAILED at the end of output
# 2020-02-25 ah,ds, v1.11 fix test -z with non existing vars; show final backup status
# 2020-02-25 ah,ds, v1.11 fix test -z with non existing vars; show final backup status
# 2021-01-29 ah,ds, v1.12 abort on empty passphrase
# ================================================================================
# ================================================================================
...
@@ -112,9 +113,6 @@
...
@@ -112,9 +113,6 @@
cat
"
${
lockfile
}
"
cat
"
${
lockfile
}
"
color reset
color reset
echo
echo
echo
if
no process was found
then
delete the lockfile
ls
-l
"
${
lockfile
}
"
echo
# 1659 - check process id inside the lock file
# 1659 - check process id inside the lock file
# detect pid from lockfile and search for this process
# detect pid from lockfile and search for this process
...
@@ -170,6 +168,12 @@
...
@@ -170,6 +168,12 @@
PASSPHRASE
=
`
_j_getvar
${
STORAGEFILE
}
"gnupg-passphrase"
`
PASSPHRASE
=
`
_j_getvar
${
STORAGEFILE
}
"gnupg-passphrase"
`
if
[
-z
"
${
PASSPHRASE
}
"
]
;
then
echo
"ERROR: no value gnupg-passphrase was set in
${
STORAGEFILE
}
to encrypt backup data."
echo
"Aborting."
exit
1
fi
sParamExclude
=
sParamExclude
=
# build exclude param list for duplicity
# build exclude param list for duplicity
#
#
...
...
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