Skip to content

How to persist jobs data outside the docker container #1277

Answered by yvanoers
AhmedAbouelkher asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AhmedAbouelkher
Comment options

@vcastellm
Comment options

Answer selected by vcastellm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants