Core Lightning Advanced DB Backup

I’d like to set up advanced DB backup to an external USB disk that I have connected to my Start9. I’ve been able to keep the external drive mounted by adding an entry to /etc/fstab from the chroot-and-upgrade environment.

How can I give the c-lightning container access to this volume? My hope is that once the container can access the volume I can follow the guide linked above to add the config to create the backup DB on the external drive.

I’ve already had one node’s DB become corrupted after a power failure and it was a bummer to have to wait (still waiting) for all the remote closes to clean things up so I’d like to be able to add some resilience beyond the static channel backup.

A container is not going to have access to the wider filesystem.

You’d have to work out how to get something into

/embassy-data/package-data/volumes/c-lightning/ that persists.

Thank you. Yes I guess the main question is is there a launcher config for the podman container somewhere that I can edit?

I was able to do something similar on an umbrel by editing the docker container config and adding a volume, but can’t find a similar file on startOS. I think the command is generated on the fly.

I’ll keep playing and report back if I find something.

StartOS is quite a bit more advanced. You’d have to fork a package and rebuild it.