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 =