SAVE
Syntax
SAVE [RDB|DF]
Time complexity: O(N) where N is the total number of keys in all databases
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.
Flags
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 isdump-{timestamp}
.save_schedule
- Generate snapshots periodically. The argument is aHH:MM
format that supports globbing (e.g.23:45
,*:15
,*:*
)
Return
Simple string reply: The commands returns OK on success.