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
!120
prune uses --max-unused unlimited
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
prune uses --max-unused unlimited
6725-optimize-restic-backup-params
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
prune uses --max-unused unlimited
Hahn Axel (hahn)
requested to merge
6725-optimize-restic-backup-params
into
master
Jan 23, 2024
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
9b94dd5f
Show latest version
1 file
+
3
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
9b94dd5f
prune uses --max-unused unlimited
· 9b94dd5f
Hahn Axel (hahn)
authored
Jan 23, 2024
plugins/transfer/restic.sh
+
3
−
2
View file @ 9b94dd5f
Edit in single-file editor
Open in Web IDE
Show full file
#!/bin/bash
# ================================================================================
#
# TRANSFER :: PLUGIN -
TEMPLATE
# TRANSFER :: PLUGIN -
RESTIC
#
# this script will be included in ../../transfer.sh
#
@@ -17,6 +17,7 @@
# 2022-10-21 ah v0.7 simplify restic exec commands in _restic; remove --prune in check
# 2022-11-04 ah v1.0 one command for forget and prune; rename hooks
# 2023-03-20 ah v1.1 use vss for backup on MS Windows
# 2024-01-23 ah v1.2 prune uses --max-unused unlimited
# ================================================================================
# --------------------------------------------------------------------------------
@@ -186,10 +187,10 @@
local
_tag
=
$(
_j_getvar
${
STORAGEFILE
}
"
${
CFGPREFIX
}
tag"
)
local
_mycmd
=
"forget
\
${
ARGS_DEFAULT
}
\
--tag
$_tag
\
--group-by paths,tags
\
--prune
\
--max-unused unlimited
\
--cleanup-cache"
local
_keep
Loading