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¶
- The file is split into chunks of 8 MiB, and its digest and Merkle root are computed.
- Chunks are uploaded to the origin in parallel, each with its digest. An interrupted upload continues where it stopped.
- The origin verifies the whole file.
- The manifest is signed and published to the relays.
- 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.