Skip to content

Publish Files

deploy/scripts/storage.sh file publish data.bin --propagate --region eu --region us --priority 2
Option Default Meaning
--propagate off Place the file in all permitted regions
--region all Permitted region. Can be repeated
--not-before 0 Start, in seconds since 1970
--expires-at 0 Expiry. 0 never expires
--priority 0 Dragonfly priority from 0 to 6

What happens

  1. The file is split into chunks of 8 MiB, and its digest and Merkle root are computed.
  2. Chunks are uploaded to the origin in parallel, each with its digest. An interrupted upload continues where it stopped.
  3. The origin verifies the whole file.
  4. The manifest is signed and published to the relays.
  5. Aggregators and bridges receive it. Bridges preheat the file if the policy says so.

Publishing the same content again only publishes a new manifest, for example with a different policy.