How to persist jobs data outside the docker container #1277
-
I read the docs about Mounting a mapped file storage volume and mounted an external volume to save my data. For some reason, the only data saved are for the raft protocol, So if for example, I needed to move my data to another server, all my jobs are gone because the container itself was destroyed. Is there a better way to fix this? or backup the jobs? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
To answer the backup question: https://dkron.io/docs/usage/upgrade/#backup--restore The raft log is all that is persisted and should be all you need. Dkron rebuilds its state from the log at startup. |
Beta Was this translation helpful? Give feedback.
To answer the backup question: https://dkron.io/docs/usage/upgrade/#backup--restore
The same page explains a online upgrade process that would work just as well for moving dkron to another server if the dkron instances can talk to each other.
The raft log is all that is persisted and should be all you need. Dkron rebuilds its state from the log at startup.
If moving the data folder didn't restore the state, I think that might be because it 'knowns' it is not running as the same node. But I'm not 100% on the raft workings off the top of my head.