Maybe this area should be better documented (if schedules wonât be added to the Web UI soon).
Itâs hard to put various bits and pieces togther. In some threads (now locked) that come up ranked higher in forum search results for post pre scripts thereâs outdated info about script paths for Web UI users:
Elsewhere a âmega scriptâ that was suggested, but it canât run (or can it?) for Web UI jobs, so thatâd mean having two sets of backup jobs (one for CLI and another for Web UI) or perhaps using the Web UI only for monitoring/checks.
Yet elsewhere a way to have pre- and post-scripts integrate better with Duplicacy was suggested but not committed (that PR was closed before it was merged).
Whatâs the difference between âscripts for backupâ and âall othersâ (pre-prune, etc.)? Dooes âall othersâ mean all scripts not related to specific backup job/number (maybe to check for network connectivity, rather than anything related to files, directories or job targets involved in backup job)?
Does that mean on Linux any script file named pre-$STRING (no extension) would run before and any file named post-$STRING would run after?
I created pre-test and post-test bash scripts, put them under both .duplicacy-web/repositories/localhost/{0-1}/.duplicacy/scripts/ and chmodâed to 777.
When I run them from shell, they work (echo date to a text file). When I run these jobs 0 and 1 from the Web UI, they donât get executed. In job logs (available in the Web UI) I see these jobs ran from directories .duplicacy-web/repositories/localhost/{0,1} but the scripts arenât mentioned in the logs, so looking at the (missing) script output and backup logs, this doesnât appear to work.