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
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
Thomas Suckow
bf5b9537d8
Merge remote-tracking branch 'thomas/feature/net5-freebsd' into feature/net5-unsplit
...
# Conflicts:
# Duplicati.sln
# Duplicati/CommandLine/BackendTester/Duplicati.CommandLine.BackendTester.csproj
# Duplicati/CommandLine/BackendTool/Duplicati.CommandLine.BackendTool.csproj
# Duplicati/CommandLine/CLI/Commands.cs
# Duplicati/CommandLine/Duplicati.CommandLine.csproj
# Duplicati/CommandLine/RecoveryTool/Duplicati.CommandLine.RecoveryTool.csproj
# Duplicati/GUI/Duplicati.GUI.TrayIcon/Duplicati.GUI.TrayIcon.csproj
# Duplicati/GUI/Duplicati.GUI.TrayIcon/ImageLoader.cs
# Duplicati/Library/Backend/SSHv2/Duplicati.Library.Backend.SSHv2.csproj
# Duplicati/Library/Backend/SSHv2/packages.config
# Duplicati/Library/Backend/Tardigrade/Duplicati.Library.Backend.Tardigrade.csproj
# Duplicati/Library/Common/Duplicati.Library.Common.csproj
# Duplicati/Library/SQLiteHelper/Duplicati.Library.SQLiteHelper.csproj
# Duplicati/Library/Snapshots/Duplicati.Library.Snapshots.csproj
# Duplicati/License/Duplicati.License.csproj
# Duplicati/Server/Duplicati.Server.csproj
# Duplicati/UnitTest/Duplicati.UnitTest.csproj
# Duplicati/UnitTest/TestUtils.cs
# Duplicati/UnixSupport/UnixSupport.csproj
# Installer/Makefile/Makefile
# guiTests/guiTest.py
2022-03-03 21:20:34 -08:00
Kenneth Hsu
2d5d300234
Fix typo in example scripts.
2021-05-06 14:03:00 -07:00
Thomas Suckow
5e8db0cead
Fix execute bit
2021-01-16 16:19:46 -08: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
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
kenneth@hexad.dk
da1150e6cc
Added support for callbacks.
...
Added a run-script module.
Need to make a Windows example script
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1426 59da171f-624f-0410-aa54-27559c288bec
2012-08-15 18:33:46 +00:00