1 ################################ SNAPSHOTTING ################################ 2 # 3 # Save the DB on disk: 4 # 5 # save <seconds> <changes> 6 # 7 # Will save the DB if both the given number of seconds and the given 8 # number of write operations against the DB occurred. 9 # 10 # In the example below the behaviour will be to save: 11 # after 900 sec (15 min) if at least 1 key changed 12 # after 300 sec (5 min) if at least 10 keys changed 13 # after 60 sec if at least 10000 keys changed 14 # 15 # Note: you can disable saving completely by commenting out all "save" lines. 16 # 17 # It is also possible to remove all the previously configured save 18 # points by adding a save directive with a single empty string argument 19 # like in the following example: 20 # 21 # save "" 22 23 save 900 1 24 save 300 10 25 save 60 10000 26 27 # By default Redis will stop accepting writes if RDB snapshots are enabled 28 # (at least one save point) and the latest background save failed. 29 # This will make the user aware (in a hard way) that data is not persisting 30 # on disk properly, otherwise chances are that no one will notice and some 31 # disaster will happen. 32 # 33 # If the background saving process will start working again Redis will 34 # automatically allow writes again. 35 # 36 # However if you have setup your proper monitoring of the Redis server 37 # and persistence, you may want to disable this feature so that Redis will 38 # continue to work as usual even if there are problems with disk, 39 # permissions, and so forth. 40 stop-writes-on-bgsave-error yes 41 42 # Compress string objects using LZF when dump .rdb databases? 43 # For default that's set to 'yes' as it's almost always a win. 44 # If you want to save some CPU in the saving child set it to 'no' but 45 # the dataset will likely be bigger if you have compressible values or keys. 46 rdbcompression yes 47 48 # Since version 5 of RDB a CRC64 checksum is placed at the end of the file. 49 # This makes the format more resistant to corruption but there is a performance 50 # hit to pay (around 10%) when saving and loading RDB files, so you can disable it 51 # for maximum performances. 52 # 53 # RDB files created with checksum disabled have a checksum of zero that will 54 # tell the loading code to skip the check. 55 rdbchecksum yes 56 57 # The filename where to dump the DB 58 dbfilename dump_6379.rdb 59 60 # The working directory. 61 # 62 # The DB will be written inside this directory, with the filename specified 63 # above using the 'dbfilename' configuration directive. 64 # 65 # The Append Only File will also be created inside this directory. 66 # 67 # Note that you must specify a directory here, not a file name. 68 dir ./