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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
iml-backup
Merge requests
!45
update restic plugin: verify; detect existing repo
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
update restic plugin: verify; detect existing repo
update-localdump-to-classlike-functions
into
master
Overview
0
Commits
1
Pipelines
0
Changes
5
Merged
Hahn Axel (hahn)
requested to merge
update-localdump-to-classlike-functions
into
master
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
5
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
d0009ce4
1 commit,
3 years ago
5 files
+
81
−
31
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
plugins/transfer/duplicity.sh
+
13
−
2
View file @ d0009ce4
Edit in single-file editor
Open in Web IDE
Show full file
@@ -287,7 +287,9 @@
# --------------------------------------------------------------------------------
# init repository
# param integer exitcode of command
function
t_rcCheckInit
(){
echo
-n
"__REPO__ "
case
$1
in
0
)
color ok
;
echo
"OK - the repository was created."
;;
*
)
color error
;
echo
"Verify output above - returncode of init was
$1
"
;;
@@ -295,24 +297,31 @@
color reset
}
# backup files
# param integer exitcode of command
# param string directory that was backed up
function
t_rcCheckBackup
(){
echo
-n
"__BACKUP__ "
case
$1
in
0
)
color ok
;
echo
"OK"
;;
0
)
color ok
;
echo
"OK
$1
"
;;
23
)
color error
echo
"FAILED - DIR
${
2
}
"
echo
A lock file was found. Maybe this server was rebooted
while
performing a backup.
echo
If so delete the file lockfile.lock named
in
the output and start
$0
again.
;;
31
)
color error
echo
"FAILED - DIR
${
2
}
"
echo
Maybe you it is a problem with the gpg-agent.conf
ls
-l
~/.gnupg/gpg-agent.conf
&&
cat
~/.gnupg/gpg-agent.conf
;;
*
)
color error
;
echo
"Backup error - returncode was
$1
"
;;
*
)
color error
;
echo
"
FAILED - DIR
${
2
}
-
Backup error - returncode was
$1
"
;;
esac
color reset
}
# repoitory cleanup
# param integer exitcode of command
function
t_rcCheckCleanup
(){
echo
-n
"__PRUNE__ "
case
$1
in
0
)
color ok
;
echo
"OK"
;;
*
)
color error
;
echo
"Cleanup error - returncode was
$1
"
;;
@@ -321,7 +330,9 @@
}
# restore files
# param integer exitcode of command
function
t_rcCheckRestore
(){
echo
-n
"__RESTORE__ "
case
$1
in
0
)
color ok
;
echo
"OK"
;;
*
)
color error
;
echo
"Restore error - returncode was
$1
"
;;
Loading