materializeRecoveryArchive
Purpose and behavior
Section titled “Purpose and behavior”Download a recovery archive into destination, checking each chunk’s revision and SHA-256 and then the transfer’s checksums, and return destination. Symlinks and file modes are restored; on failure the partial destination is kept. Bring the work back with planRecoveryRestore() and restoreRecoveryTransfer().
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”optionsRequiredRecoveryArchiveRestoreOptionsPinned archive reference, transport, new local destination and verification bound.options.referenceRequiredTransportReferencePinned manifest returned by archiveRecovery; every chunk revision and SHA-256 is checked.options.destinationRequiredstringNew local directory whose parent already exists. Existing destinations are refused; partial data is retained on failure.options.maxBytesOptionalnumber | undefinedPositive total restored payload limit, default 1 GiB; also bounds recovery integrity verification.options.transporterRequiredTransportCaller-owned object transport used by the store or operation. Closing a workflow or sandbox does not close this transport.observationOptionalObservationHub | undefinedHub that receives the start and end events of the archive download.