Hello. I am wondering if there is a blueprint for my use case.
Duplicati is installed via docker container. I want to do an automated backup to an external USB drive. The drive shall be mounted before and unmounted after the backup. (the next step will be that the drive power supply is switched on/off via a smart home control)
The first constraint I came across:
I have to mount the drive on the host before running the duplicati container. When I mount it on the host while the container is already running, it does not show up inside the container.
So this I can do per script. Power the drive, then mount it, then start the duplicati container.
second constraint: When the backup is finshed, the drive shall be unmounted.
How can duplicati tell the host that the backup is finished - so it can stop the container and unmount the drive?
Or do I think too complicated and there is an easier solution? I did not manage to mount the USB drive from inside the duplicati container.
I am thinking about using a raspberry pi just to bring the backup target drive into the network. But there must be some solution with a direct USB connection as well?
regards,
exae