redis copies a key from one repository to another

redis-cli -h 127.0.0.1 -p 8090 -a 1234 -n 14 --raw dump key | perl -pe 'chomp if eof' | redis-cli -h 127.0.0.1 -p 8090 -a 1234 -n 15 -x restore key 0

-h hostip,

-p port,

-a password,

-n db library,

The --no-raw option is to require that the return result of the command must be in the original format,

--raw is the exact opposite, returning the formatted result,

The -x option stands for reading data from standard input (stdin)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325171559&siteId=291194637