O'Reilly logo

Instant Redis Persistence by Matt Palmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Enabling AOF with existing data (Intermediate)

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.

How to do it...

  1. Connect to your Redis instance using the redis-cli command. Typically, this is as simple as running redis-cli on the command line of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required