Persistent Redis containers

By default, Redis Server saves snapshots of the data on disk using a binary file called dump.rdb as configured in the default configuration file. The Redis containers we've created so far are not persistent. For example, if the container is removed or stopped all the data saved by the container is lost. Sometimes we would want to have a copy of the database even after the container exits. Redis provides an option to alter the offline database file location (and name) so that we can backup/archive the latest database before the container exits. This provides a very good disaster recovery mechanism because all we need to backup is a single compact file which can be easily transferred and restored in a different location. ...

Get Learning Windows Server Containers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.