Skip to content
Snippets Groups Projects

update docs

Merged Hahn Axel (hahn) requested to merge add_prune_script into master
3 files
+ 51
9
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 26
3
@@ -139,6 +139,7 @@ The inc_config.sh mus contain 3 variables for pruning
prune_basedir=/netshare/restic-backup
prune_params="--group-by paths,tags --prune --keep-within 180d --max-unused unlimited --max-repack-size 100M --cleanup-cache"
prune_skipdays="7"
prune_cachedir=${prune_basedir}/.cache_for_pruning
```
## rest_pruner.cfg
@@ -162,9 +163,9 @@ ls -l rest_pruner.cfg
## Syntax
```txt
========== RESTIC REST PRUNER v0.1 ==========
------------------------------------------------------------------------------
--------========###| RESTIC REST PRUNER :: v0.3 |###=======--------
------------------------------------------------------------------------------
Pruner for restic rest server with append only option.
This script prunes all repositories on server side.
@@ -172,11 +173,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 +196,22 @@ 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