Is there any way to check, from an active session, whether a Redis server has persistence (e.g. RDB persistence) enabled? The INFO command does contain a section on persistence, but it is not clear to me whether the values indicate that persistence is turned on.
There are two type of persistance, RDB and AOF.
redis-cli CONFIG GET save
RDB persistence enabled if it return something like that:1) "save" 2) "900 1 300 10 60 10000"
RDB persistence disabled if you get empty result:
1) "save" 2) ""
To check is AOF persistence enabled, invoke:
redis-cli CONFIG GET appendonly
If you get yes - it's enabled, no - disabled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With