Context
I have a live running redis-server.
I want to make a backup.
Idea:
I want to do the following:
cp dump.rdb ~/some-other-location/06-24-2012.rdb ?
Concern
I don't see anything that promises me that dump.rdb is always a consistent database store. (I.e. it appears possible to me that while I am executing cp, redis is halfway through writing some piece of data, and thus dump.rdb is not in a consistent state.)
Problem:
This is bad, because I will now have to shut down the redis db in order to make a copy of dump.rdb
Question:
What is the correct way, while a redis-server is running, to make a live backup of the database? And what part of the manual promises me that this method creates a database that is in a consistent (not half written) state.
Thanks!