From 1b06fdc2b8941999516adc07aafaf8dcd9947f6e Mon Sep 17 00:00:00 2001 From: kees-z Date: Wed, 8 Jun 2022 14:30:49 +0200 Subject: [PATCH] Update appendix-g-example-scripts.md --- docs/appendix-g-example-scripts.md | 422 +++++++++++++++++++++++++++++ 1 file changed, 422 insertions(+) diff --git a/docs/appendix-g-example-scripts.md b/docs/appendix-g-example-scripts.md index 8b13789..eb1090c 100644 --- a/docs/appendix-g-example-scripts.md +++ b/docs/appendix-g-example-scripts.md @@ -1 +1,423 @@ +Scripts can used to automate operations before or after a backup operation, collect information about the running backup job and to change options for the current backup. In this chapter two example scripts are provided, the first one is a Windows batch file, followed by a similar shell script for Linux systems. +## run-script-example.bat + +```nohighlight +@echo off + +REM ############################################################################### +REM How to run scripts before or after backups +REM ############################################################################### + +REM Duplicati is able to run scripts before and after backups. This +REM functionality is available in the advanced options of any backup job (UI) or +REM as option (CLI). The (advanced) options to run scripts are +REM --run-script-before = +REM --run-script-before-required = +REM --run-script-timeout =