Skip to content
Snippets Groups Projects
Commit 9b94dd5f authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

prune uses --max-unused unlimited

parent fd330578
Branches
No related tags found
1 merge request!120prune uses --max-unused unlimited
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment