Instructions for configuring redis
-
Hello @baris, @psychobunny, and @julian,
I could really benefit from a clear set of instructions for configuring Redis. Specifically, I would like to know the best practices for taking regular RDB snapshots so I can make regular backups in EBS (I'm running an EC2 instance). Could you please point me in the right direction or give me some pointers?
Thanks!
-
Hi @aaron, Redis takes snapshots every fifteen minutes, and saves it to a folder defined in your Redis configuration (perhaps
/var/lib/redis
).Personally, I just tarzip it hourly and leave it at that. If you're worried about persistence (as in, 15 minutes is too long), you can always enable the "append-only file" and/or lower the snapshot interval
For some not-so-light reading, check out the Redis article on Persistence.