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
!32
5046 finetune restic params
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
5046 finetune restic params
5046-finetune-restic-params
into
master
Overview
0
Commits
8
Pipelines
0
Changes
6
Merged
5046 finetune restic params
Hahn Axel (hahn)
requested to merge
5046-finetune-restic-params
into
master
Feb 9, 2022
Overview
0
Commits
8
Pipelines
0
Changes
2
0
0
Merge request reports
Compare
version 1
version 4
3a49de99
Feb 9, 2022
version 3
a1906589
Feb 9, 2022
version 2
e8e33809
Feb 9, 2022
version 1
28a5b728
Feb 9, 2022
master (base)
and
version 3
latest version
524bc523
8 commits,
Feb 9, 2022
version 4
3a49de99
7 commits,
Feb 9, 2022
version 3
a1906589
6 commits,
Feb 9, 2022
version 2
e8e33809
5 commits,
Feb 9, 2022
version 1
28a5b728
4 commits,
Feb 9, 2022
Show latest version
2 files
+
29
−
25
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
plugins/transfer/restic.sh
+
16
−
14
View file @ a1906589
Edit in single-file editor
Open in Web IDE
Show full file
@@ -138,19 +138,6 @@
# uses global vars from ../../transfer.sh
function
t_backupDoPostTasks
(){
echo
"--- CLEANUP local data:"
echo
restic cache
--cleanup
color cmd
restic cache
--cleanup
local
_myrc
=
$?
color reset
case
$_myrc
in
0
)
color ok
;
echo
"OK"
;;
*
)
color error
;
echo
"Cleanup error - returncode was
$_myrc
"
;;
esac
color reset
echo
echo
"--- UNLOCK ... just in case :-)"
echo
restic unlock
${
ARGS_DEFAULT
}
color cmd
@@ -214,7 +201,22 @@
# post backup actions
# uses global vars from ../../transfer.sh
function
t_backupDirDoPostTasks
(){
echo
"Nothing to do."
echo
"--- SHOW CHANGES between last 2 snapshots"
local
_data
local
_snapshotLast
local
_snapshotNow
# get list of snapshots and filter the lines with a date YYYY-MM-DD
_data
=
$(
t_restoreDoShowVolumes |
grep
"[12][0-9][0-9][0-1]-[0-2][0-9]-[0-3][0-9]"
|
tail
-2
)
_snapshotLast
=
$(
echo
"
$_data
"
|
head
-1
|
cut
-f
1
-d
" "
)
_snapshotNow
=
$(
echo
"
$_data
"
|
tail
-1
|
cut
-f
1
-d
" "
)
echo
"
$_data
"
color cmd
restic diff
"
${
_snapshotLast
}
"
"
${
_snapshotNow
}
"
color reset
echo
}
# --------------------------------------------------------------------------------
Loading