Skip to content
Snippets Groups Projects

prune uses --max-unused unlimited

Merged Hahn Axel (hahn) requested to merge 6725-optimize-restic-backup-params into master
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
+ 3
2
#!/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