:
bwood@mybox:~$ redis-cli --raw dump mykey | head -c-1 > myfile
bwood@mybox:~$ cat myfile | redis-cli -x restore mynewkey 0
, , : head: count - -1
head:
redis-cli --raw dump mykey > myfile
, .
:
0561 7074 7572 6520 fa00 5be0 0526 015d
7d06 00a7 afed c100 323d 400a
"0a" , .
0561 7074 7572 6520 fa00 5be0 0526 015d
7d06 00a7 afed c100 323d 40
source
share