Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iml Backup Server
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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 Server
Merge requests
!5
update docs
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
update docs
add_prune_script
into
master
Overview
0
Commits
3
Pipelines
0
Changes
2
Merged
Hahn Axel (hahn)
requested to merge
add_prune_script
into
master
1 year ago
Overview
0
Commits
3
Pipelines
0
Changes
2
0
0
Merge request reports
Compare
master
version 2
c7129360
1 year ago
version 1
d49be457
1 year ago
master (base)
and
version 1
latest version
fb420791
3 commits,
1 year ago
version 2
c7129360
2 commits,
1 year ago
version 1
d49be457
1 commit,
1 year ago
2 files
+
27
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
docs/30_Scripts.md
+
26
−
3
View file @ d49be457
Edit in single-file editor
Open in Web IDE
Show full file
@@ -162,9 +162,9 @@ ls -l rest_pruner.cfg
## Syntax
```txt
========
==
RESTIC REST PRUNER
v0.1 ==========
------------------------------------------------------------------------------
--------
========
###|
RESTIC REST PRUNER
:: v0.2 |###=======--------
------------------------------------------------------------------------------
Pruner for restic rest server with append only option.
This script prunes all repositories on server side.
@@ -172,11 +172,21 @@ This script prunes all repositories on server side.
The config file [rest_pruner.cfg] contains
<USER>
:
<RESTIC_PASSWORD>
If a directory matches /netshare/restic-backup/
<USER>
then it will be pruned.
Institute for Medical Education
*
University of Bern
GNU GPL 3.0
SYNTAX:
rest_pruner.sh [OPTIONS] [FILTER]
OPTIONS:
-h, --help show help and exit.
-a, --all process all repositories, default: rest only + archives
-d, --debug show more infos
-f, --force force pruning; do not wait 7 days
-s, --status show pruning status with last prunes
PARAMETERS:
FILTER regex to filter directory list in
@@ -185,10 +195,23 @@ PARAMETERS:
EXAMPLES:
rest_pruner.sh
Start pruning of all matching repositories
rest_pruner.sh mail
Prune servers that match "mail",
eg. my-mailhub.example.com
rest_pruner.sh --force mail
Prune servers that match "mail",
eg. my-mailhub.example.com
rest_pruner.sh --status
Show statistics with last prunes, if it is archive or
running or on error.
It shows repositories with passwords and archives.
Other repositories are not visible until you
specify --all.
```
## How does it work
Loading