-
Hello, How can I persist the db data? I am running the binary via a systemd service on my linux server. I have noticed that data is not persisting on restarts. I added a simple key via
I thought |
Beta Was this translation helpful? Give feedback.
Answered by
heikomat
Apr 11, 2023
Replies: 1 comment
-
You have one of two options
Either should result in a snapshot/dump being created every 5 minutes (with your config) that should get loaded on restart |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
0xSalman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have one of two options
--dbfilename=dump.rdb
This makes dragonfly load the data from the latest snapshot instead of trying to read it from
dump.rdb
--df_snapshot_format=false
This makes dragonfly save snapshots in the
dump.rdb
, instead of its own snapshotting formatEither should result in a snapshot/dump being created every 5 minutes (with your config) that should get loaded on restart