how to get the redis backup directory and finds the corresponding rdb file

created at 07-22-2021 views: 3

In actual work, sometimes I forget the redis backup directory, how can I quickly find the redis RDB storage directory?

Get the RDB directory of redis

redis-cli>  CONFIG GET dir
1) "dir"
2) "/var/lib/redis"

From the above, you can see that rdb is stored in the /var/lib/redis folder.

created at:07-22-2021
edited at: 07-22-2021: