As a newbie in both Redis and the forum…
On a redis cluster running v7.2.1 on Kubernetes I have placed the RDB file with the data in /data, and it got imported fine upon restart. To do that I had to disable AOF, so it would read the RDB. With AOF enabled, it was ignoring the RDB file. Now I have to go back to enabling AOF, as we have decided that we prefer AOF persistence to RDB, However when I do that and reinstall, I find that my data has disappeared: when I run a “scan 0” nothing is there. I was expecting that, since the PVC is not affected when I uninstall the Helm chart, the data would persist.
How can get this done? i.e. not lose the data when I switch back to AOF? Can I somehow save the data in AOF format so it will be found upon reinstallation? But is this even possible when I have AOF enabled?
Here is my config after re-enabling AOF
> # User-supplied common configuration:
> # Enable AOF https://redis.io/topics/persistence#append-only-file
> appendonly yes
> # Disable RDB persistence, AOF persistence already enabled.
> save ""
> # End of common configuration