Commit Graph
18 Commits
Author SHA1 Message Date
Kenneth Skovhede 39636c6364 Added post-backup script
This PR adds a new `--run-script-post-backup` option that allows running a script after the main backup operation has completed, but before locking, compacting and verification is done.

The use for this is intended for cases where you want to stop or pause some service, run a backup, and then resume the service. Prior to this PR you would need to wait for the entire backup operation to complete, but with the new option you can resume as soon as the source data is no longer needed.
2026-05-01 07:06:12 +02:00
Kenneth Skovhede 67c3039814 Updated example script docs 2025-10-15 12:00:04 +02:00
Kenneth Skovhede 3812f1df0a Updated Windows example script
This fixes #6322
2025-06-12 11:44:50 +02:00
Kenneth Skovhede 439d10b53d Improve shell-script arguments 2025-02-12 09:23:07 +01:00
Kenneth Skovhede 1b7e1349ca Adding option for enabling argument parsing in scripts 2024-06-17 09:32:04 +02:00
Kenneth Skovhede 486e13dd51 Revert "Added support for passing arguments to scripts"
This reverts commit 9b9e8a2adb.
2024-06-13 07:24:17 +02:00
Kenneth Skovhede 37071136b7 Revert "Updated example files to mention the arguments more prominently"
This reverts commit 763048c8bd.
2024-06-13 07:24:07 +02:00
Kenneth Skovhede 763048c8bd Updated example files to mention the arguments more prominently 2024-06-12 11:11:40 +02:00
Kenneth Skovhede 9b9e8a2adb Added support for passing arguments to scripts 2024-06-12 10:54:53 +02:00
Kenneth Hsu 2d5d300234 Fix typo in example scripts. 2021-05-06 14:03:00 -07:00
Daniel Gloger 50b0e2ad03 run-script-example.*: correction of change of environment variable
Correction of the last commit: Change DUPLICATI__dblock-_size to
DUPLICATI__dblock_size.
2019-07-23 09:21:58 +02:00
Daniel Gloger 2ef30fed30 run-script-example.*: change environment variable DUPLICATI__volsize
... to DUPLICATI__volsize, analogous to the previous commit.
Compare RunScript.cs, line 214.
2019-07-22 13:24:41 +02:00
Daniel Gloger 0b40693cd9 Modules/Builtin/run-script-example.*: change option --volsize to --dblock-size
The option --volsize is changed to --dblock-size to fix the examples.
2019-07-19 17:07:00 +02:00
Kenneth Skovhede 494fccd931 Added support for multiple exit codes, and added a unittest to verify that the exit codes are handled correctly 2018-08-14 11:09:16 +02:00
Brian Lakstins ba8dddc7fe Move RunScript module to be configured first so that any configuration changes can be used by other modules 2018-01-12 09:43:07 -05:00
Kenneth Skovhede d6aa87e003 Updated the run-script module to report the parsed result level.
This fixes #2656
2017-09-01 10:49:42 +02:00
Kenneth Skovhede e7b97ebb79 Improved documentation for filter usage inside scripts 2015-12-27 22:30:58 +01:00
kenneth@hexad.dk 6e8fc9af27 Update issue #106
Updated implementation, and added a Windows .bat example.
Instead of using stdin the result is now written to a file, as Windows has some issues with reading stdin from a script. 

git-svn-id: https://duplicati.googlecode.com/svn/trunk@1427 59da171f-624f-0410-aa54-27559c288bec
2012-08-16 20:00:23 +00:00