ELI5: Where to place scripts in the Duplicacy WEB docker container?

Hi.
I’m using the Duplicacy WEB edition running in a container on Unraid
I have scripts that I want to run before and after running the backups, but I cannot for the life of me understand where to put those scripts and what to name them.

So, PLEASE ELI5 :slight_smile:

I feel the web gui has a lot of potential here, and I wish it would get a major upgrade when it comes to placement of scripts, ssh keys etc.
It would be SO much easier if we just could select the scripts from the GUI

1 Like

Depending on the container, it will be somewhere in the /caches/…/(number)/.duplicacy/scripts/ folders.

I found a directory /cache/localhost/1/.duplicacy
So I create a scripts folder in here?
What is the difference between the 0 folder and the 1 folder?
It seems to me it changed numbers when I added another storage in the GUI.
So if I change something in the GUI it would add a new number? 2?
Wouldn’t that make my scrips inaccessible? Since they reside in 1?

And what names shall the scripts have?

Thanks

Yes, those are temporary repositories that webui creates for duplicacy CLI.

Numbers are indexes of the configured backups in the webui. Numbers can change if you rearrange things in the webUI. There is also folder all, some operations run there instead.

This is of course fragile and unsupported, those are temporary disposable repositories webui creates to run backups, but if you need to get it done — that’s one way, until webui adds support for scripts.

Script names are per documentation: Pre Command and Post Command Scripts · gilbertchen/duplicacy Wiki · GitHub