antirez / lamernews

Lamer News -- an HN style social news site written in Ruby/Sinatra/Redis/JQuery
http://lamernews.com
Other
1.35k stars 199 forks source link

Backup the news #146

Closed mulderp closed 11 years ago

mulderp commented 11 years ago

Hi,

just wanted to put a request for a feature/feedback, for how to backup the data from Lamernews best?

Would it make sense to include a script to dump the data into a file? How would one restore the data in case of failure?

Thanks!

Patrick

fcambus commented 11 years ago

You can find detailed information about Redis Persistence here : http://redis.io/topics/persistence

Regarding your question in particular, check the "Backing up Redis data" section. You can simply archive the RDB snapshots using a cron job.

fcambus commented 11 years ago

On that topic, it would be interesting to know what scheme (RDB, AOF, or a combination of both?) and configuration options @antirez uses (and recommend) for Lamer News and Hacking Italia?

fcambus commented 11 years ago

For the record : https://twitter.com/antirez/status/380690508848566273