Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have RedisDB that exists in a Docker container. Database restored from dump.rdb file and everything works well (I can get all data that stored in Redis before) until Redis tries to save data in the background. Log here:

1:M 28 Jan 2021 11:28:28.035 * 100 changes in 300 seconds. Saving...
1:M 28 Jan 2021 11:28:28.349 * Background saving started by pid 21
21:C 28 Jan 2021 11:30:23.589 * DB saved on disk
21:C 28 Jan 2021 11:30:23.930 * RDB: 0 MB of memory used by copy-on-write

And after that, I see in the folder a new file: backup.db, and all data I get from this file (instead of dump.rdb).

redis.conf:

appendonly yes
appendfilename "appendonly.aof"
dbfilename dump.rdb
dir ./
save 900 1
save 300 10
save 60 10000

Docker run command:

docker run --name redis -p 6379:6379 -v /redis/data:/data -v /redis/config/redis.conf:/usr/local/etc/redis/redis.conf -d redis

dump.rdb file stored into /redis/data folder and redis.conf stored into /redis/config folder

Redis version: 6.0.10

Question: How to avoid creation backup.db file?

question from:https://stackoverflow.com/questions/65937275/redis-store-data-in-backup-db-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
505 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...