tgbyte / docker-borg-backup

A dockerized Borg Backup server
https://hub.docker.com/r/tgbyte/borg-backup
Apache License 2.0
26 stars 18 forks source link

persist generated ssh host key #1

Closed pierreozoux closed 3 years ago

pierreozoux commented 7 years ago

Hi, and thanks for your beautiful image!

Do you know how to persist the host ssh key?

Thanks!

dowdell commented 7 years ago

You could try mounting a volume for /home/borg/.ssh

netpro2k commented 4 years ago

I know this is an old post, but in case anyone comes looking... What you actually want to do is mount a volume for /etc/ssh/ as that is where the host keys are stored. The important contents of /home/borg/.ssh are already written out by the boot script.

ginkel commented 3 years ago

@pierreozoux Sorry, it took a while, but host key persistence is now implemented. Details in the README...