Skip to main content




Time complexity: O(N) where N is the total number of keys in all databases

ACL categories: @admin, @slow, @dangerous

The SAVE commands performs a save of the dataset producing a point in time snapshot of all the data inside the Dragonfly instance, in the form of a set of DFS files.

Use SAVE RDB to save the snapshot in form of an RDB file instead. Please refer to the persistence documentation for detailed information about RDB files.


  • df_snapshot_format - Set true to save dump in Dragonfly file format (true by default).
  • dbfilename - The file name to save and load the database. To generate a file with a timestamp, set the macro {timestamp} in the filename, e.g. dump-{timestamp}. The macro will be replaced with a timestamp of the local time in a lexicographically sorted format. The default filename is dump-{timestamp}.
  • save_schedule - Generate snapshots periodically. The argument is a HH:MM format that supports globbing (e.g. 23:45, *:15, *:*)


Simple string reply: The commands returns OK on success.