Creates Snapshot of current data

POST {{baseUrl}}/admin/tsdb/snapshot?skip_head=true

Snapshot creates a snapshot of all current data into snapshots/<datetime>-<rand> under the TSDB's data directory and returns the directory as response. It will optionally skip snapshotting data that is only present in the head block, and which has not yet been compacted to disk.

New in v2.1 and supports PUT from v2.9

Request Params

KeyDatatypeRequiredDescription
skip_headbooleanSkip data present in the head block. Optional.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;status&quot;:&quot;success&quot;,&quot;data&quot;:{&quot;name&quot;:&quot;20171210T211224Z-2be650b6d019eb54&quot;}}