Tezos_layer2_store.Desync_snapshotsModule for handling incremental snapshots with desync.
type chunk_size = {min : int;The minimum chunk size.
*)avg : int;The average chunk size.
*)max : int;The maximum chunk size.
*)}Defines the chunking strategy for the desync tool.
val export :
?desync_path:string ->
?chunk_size:chunk_size ->
?metadata:'a ->
?metadata_encoding:'a Tezos_base.TzPervasives.Data_encoding.t ->
?progress:bool ->
target_store:string ->
index_file:string ->
backup_items:string list ->
string ->
unit Tezos_base.TzPervasives.tzresult Lwt.texport ?desync_path ?chunk_size ?metadata ?metadata_encoding ?progress ~target_store ~index_file ~backup_items data_dir exports the given backup_items from the data_dir to a desync store at target_store and creates an index file at index_file.
val import :
?desync_path:string ->
?metadata_encoding:'a Tezos_base.TzPervasives.Data_encoding.t ->
source_store:string ->
index_file:string ->
string ->
'a option Tezos_base.TzPervasives.tzresult Lwt.timport ?desync_path ?metadata_encoding ~source_store ~index_file mount_point imports a snapshot from a desync store at source_store using the index file at index_file and restores it to the mount_point.
val read_metadata :
?desync_path:string ->
source_store:string ->
index_file:string ->
'a Tezos_base.TzPervasives.Data_encoding.t ->
'a Tezos_base.TzPervasives.tzresult Lwt.tread_metadata ?desync_path ~source_store ~index_file encoding reads and decodes the metadata from the store without performing a full import.
val info :
?desync_path:string ->
string ->
Ezjsonm.value Tezos_base.TzPervasives.tzresult Lwt.tinfo ?desync_path index_file reads and returns information about a snapshot from its index file as a JSON object.