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
ae9bc41b
Commit
ae9bc41b
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Plain Diff
Merge branch 'small-fixes' into 'master'
Small fixes See merge request
!22
parents
20ecc5e9
48d1c93d
No related branches found
No related tags found
1 merge request
!22
Small fixes
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+5
-5
5 additions, 5 deletions
README.md
jobhelper.sh
+1
-1
1 addition, 1 deletion
jobhelper.sh
plugins/transfer/restic.sh
+11
-1
11 additions, 1 deletion
plugins/transfer/restic.sh
with
17 additions
and
7 deletions
README.md
+
5
−
5
View file @
ae9bc41b
# IML BACKUP #
Backup scripts using duplicity.
Backup scripts using
restic or
duplicity.
Runs on Linux.
Free software. GNU GPL 3.0
.
Source
:
<https://
git-repo.iml.unibe.ch/iml-open-source/iml-backup
/>
Duplicity:
<http://duplicity.nongnu.org/>
*
Free software. GNU GPL 3.0
*
Source:
<https://git-repo.iml.unibe.ch/iml-open-source/iml-backup/>
*
Restic
:
<https://
restic.net
/>
*
Duplicity:
<http://duplicity.nongnu.org/>
## Why ##
...
...
This diff is collapsed.
Click to expand it.
jobhelper.sh
+
1
−
1
View file @
ae9bc41b
...
...
@@ -73,7 +73,7 @@ function j_init(){
# for date definitions like weekdays
JOBDEF_LANG
=
`
_j_getvar
${
JOBFILE
}
"lang"
`
if
[
-z
$JOBDEF_LANG
]
;
then
if
[
-z
"
$JOBDEF_LANG
"
]
;
then
JOBDEF_LANG
=
"en_us"
fi
export
LANG
=
$JOBDEF_LANG
...
...
This diff is collapsed.
Click to expand it.
plugins/transfer/restic.sh
+
11
−
1
View file @
ae9bc41b
...
...
@@ -8,6 +8,7 @@
# --------------------------------------------------------------------------------
# ah - Axel Hahn <axel.hahn@iml.unibe.ch>
# 2021-05-19 ah v0.0 INIT ... WIP
# 2022-01-06 ah v0.0 added support for Repository with REST and authentication
# ================================================================================
# --------------------------------------------------------------------------------
...
...
@@ -25,7 +26,16 @@
# if we set RESTIC_REPOSITORY then "-r TARGET" is not
# needed in restic commands
export
RESTIC_REPOSITORY
=
$(
j_getFullTarget
)
# TODO: for restic with https and auth - remove the host in the path
local
_target
=
$(
j_getFullTarget
)
echo
${
_target
}
|
grep
"https.*@"
>
/dev/null
if
[
$?
-eq
0
]
;
then
local
_host
=
$(
hostname
-f
)
_target
=
$(
echo
$_target
|
sed
"s#
${
_host
}
/##"
)
fi
export
RESTIC_REPOSITORY
=
$_target
# WORKAROUND for bug while writing on a SMB target
export
GODEBUG
=
"asyncpreemptoff=1"
...
...
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