Redis-cli --csv option (exporting to csv)

后端 未结 5 2077
轻奢々
轻奢々 2021-02-02 12:34

I would like to export a subset of my Redis data on the slave to a csv file. I notice a new csv output option was added to redis-cli but I am unable to find documentation of ho

5条回答
  •  渐次进展
    2021-02-02 13:05

    Go to src redis directory and run the below command

    ./redis-cli $command > $file_name
    

    Exemple: ./redis-cli SMEMBERS "$KEY" > $file_name(RANDOM NAME)

    this worked for me.

提交回复
热议问题