The simple AOF recipe described previously only works on a brand new database, when there is no existing data. But, what if you've already got data you need to keep?
In that case, you'll need to tell Redis to start using AOF while it is still running. Until now, all of our recipes have involved configuring Redis by editing the configuration file and then starting (or restarting) Redis. However, Redis has the ability to apply most configuration variables to a running instance, and in this recipe, we're going to take advantage of this ability to do it live.
redis-clicommand. Typically, this is as simple as running
redis-clion the command line of ...