generalmastodon

Modify the Redis persistence mode

You can change the modes to adapt Redis persistence to your needs. There are multiple possibilities to do so. Find below how to enable AOF as an example:

  • Edit the configuration file /opt/bitnami/redis/etc/redis.conf. Change the appendonly configuration directive from no to yes:

      appendonly yes
    
  • Edit the Redis configuration file /opt/bitnami/redis/etc/redis.conf. Change the appendonly configuration directive from no to yes as shown below:

      appendonly yes
    

    This change will apply when you restart the server.

  • (Optional) To apply the change inmediately, execute the following command. Replace the YOURPASSWORD placeholder with the value of your password:

      $ redis-cli -a YOURPASSWORD CONFIG set appendonly yes
    

For more information on this, please check the Redis official documentation about Redis Persistence.

Last modification December 21, 2022