Redis DB export/import

Sergii Mostovyi picture Sergii Mostovyi · Jan 2, 2012 · Viewed 43.5k times · Source

Does anybody know a good solution for export/import in Redis? Generally I need to dump DB (and edit the dump as a case) from a server and load it to another one (e.g. localhost). Maybe some scripts?

Answer

seppo0010 picture seppo0010 · Jan 3, 2012

Redis has two binary format files supported: RDB and AOF.

RDB is a dump like what you asked. You can call save to force a rdb. It will be stored in the dbfilename setting you have, or dump.rdb in the current working directory if that setting is missing.

More Info: http://redis.io/topics/persistence