I am running a redis instance locally. I am using the redis.conf file to provide the fixed directory and filename to my instance to save the redis dump.rdb snapshot.
My intention is to compare two redis snapshots taken at different times. But Redis rewrites over the old dump file after creating the new one.
I found the rdb.c file, which has the code that executes the autosave and rewrites over old snapshots.
Before messing with code on my local copy (since i'm not an experienced with the codebase), I wanted to ask if there is a better way to save snapshots taken at different times?
Thank you so much for helping :)
Comment From: oranagra
there's nothing like that built into redis. i suppose the proper way would be t copy the file aside (or make a hard-link) by using some external script.
Comment From: loud-mouth
I see. Thanks very much @oranagra!