From 942c4f0e96826f1ed95455db04014a933a01ad8a Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Mon, 20 Mar 2023 10:25:47 +0100 Subject: [PATCH] Restic: use VSS for backup on windows --- plugins/transfer/restic.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/transfer/restic.sh b/plugins/transfer/restic.sh index 190a5c5..d8bb693 100644 --- a/plugins/transfer/restic.sh +++ b/plugins/transfer/restic.sh @@ -16,6 +16,7 @@ # 2022-05-16 ah v0.6 added restic prune # 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 # ================================================================================ # -------------------------------------------------------------------------------- @@ -79,6 +80,10 @@ echo -n "--tag $_tag " fi + # Use VSS on MS Windows + if _isMswindows; then + echo -n "--use-fs-snapshot " + fi } # return a cli parameter for a single exlude directory -- GitLab