Remote dump for backup using redis-cli sync

940 views
Skip to first unread message

Kenn Ejima

unread,
Jun 4, 2012, 2:48:45 PM6/4/12
to Redis DB
Hi,

Basically what I want to do is download what's equivalent to
"dump.rdb" from the Redis server.

The SYNC command seemed to fit the bill, so I went ahead and run the
following command:

redis-cli -h 10.1.2.3 sync > local.rdb

and compared local.rdb with dump.rdb.

They seem to be almost identical except there's one additional byte of
LF in local.rdb.

Here's my question: Is it safe to use this method for taking backups
(by removing the last byte)?
Reply all
Reply to author
Forward
0 new messages