Skip to content

How can I persist db data? #1050

Answered by heikomat
0xSalman asked this question in Q&A
Discussion options

You must be logged in to vote

You have one of two options

  1. remove --dbfilename=dump.rdb
    This makes dragonfly load the data from the latest snapshot instead of trying to read it from dump.rdb
  2. add --df_snapshot_format=false
    This makes dragonfly save snapshots in the dump.rdb, instead of its own snapshotting format

Either should result in a snapshot/dump being created every 5 minutes (with your config) that should get loaded on restart

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 0xSalman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants