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
2
Merged
Hahn Axel (hahn)
requested to merge
5046-finetune-restic-params
into
master
3 years ago
Overview
0
Commits
8
Pipelines
0
Changes
2
0
0
Merge request reports
Viewing commit
a1906589
Prev
Next
Show latest version
2 files
+
29
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
a1906589
restic: show changes of last backup
· a1906589
Hahn Axel (hahn)
authored
3 years ago
plugins/transfer/restic.sh
+
16
−
1
View file @ a1906589
Edit in single-file editor
Open in Web IDE
Show full file
@@ -201,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