It would be killer if there was a way to specify a timestamp (or other custom param) to be appended to the dump.rdb filename.
This would allow the "snapshots" to be collected over time. For example the .conf directive would allow for a few tokens similar to strftime tokens. I don't think all the tokens are necessary. Maybe just Year/Month/Day in their various 2/4/leading zero formats as well as Hour/Minute/Second in their, 12/24/leading zero formats and an optional "%N" that is simply an increment if there is a filename collision ...
dbfilename dump_%Y%m%d_%H%M.rdb
would yield (for 12 Jan 2012 3:33PM):
./dump_20120112_1533.rdb
This would allow for a slightly more robust persistence mechanism without necessitating cron jobs or other external scripting.
If this feature already exists and I can't find it, I apologize.
Edit: This was meant for feature requests ... again apologies.
Comment From: jinleileiking
I am new, reading the redis code, This is a good idea ;)
Comment From: jinleileiking
I think @antirez had considered this question. Let us see what the master said :)
Comment From: jonaslejon
Agree. Also individual dump files for each database would be useful
Comment From: hpatro
I think it's pretty easy to orchestrate this outside of Redis. Do a BGSAVE and move the dump.rdb file to a particular folder with a new file name consisting of the current timestamp or update to cloud object store with a key of something like yy/mm/dd/hh/dump.rdb.