antirez/redis — Issue #275: dump.rdb filenames
Author: henderjon
Created: 2011-12-27 23:17:59+00:00
State: open

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.