Skip to content

copyrite

Dataset #1
Dataset #1
Dataset #n
Dataset #n
Creates
Creates
Creates
Creates
Stored In
Stored In
Stored In
Stored In
Caches Data Into
Caches Data Into
Caches Data Into
Caches Data Into
Controls Access Via
Controls Access Via
Applies For Access To
Applies For Access To
Uses
Uses
Accesses / Uses Data
Accesses / Uses Data
Data contributor
Data contributor
Researcher
Researcher
Data controller
Data controller
Genomic data node

A collection of functionality for copying / cacheing and giving controlled access to genomic data
Genomic data nodeA collection of functionality for copying /cacheing and giving controlled access togenomic data
Long term storage (cloud)
e.g. AWS long term storage (glacier etc)
Long term storage (cloud)e.g. AWS long term storage(glacier etc)
Long term storage (on-prem)
e.g. Melbourne University long term storage
Long term storage (on-prem)e.g. Melbourne University longterm storage
Researcher tool #1

e.g. Seqera
Researcher tool #1e.g. Seqera
Researcher tool #n
e.g. AWS EC2
Researcher tool #ne.g. AWS EC2
DATA
COPYING
DATACOPYING
DATA
SHARING
DATASHARING
COST
MONITOR
COSTMONITOR
DATA
FORMATTING
DATAFORMATTING
RESEARCHER
ENVIRONMENTS
RESEARCHERENVIRONMENTS
SUPPORT
SUPPORT
REAL DATA
REAL DATA
DAC
DAC
Text is not SVG - cannot display
Production

A command-line tool, written in Rust, for efficient checksum and copy operations across object stores. Where steps-s3-copy orchestrates the movement of large datasets at scale, copyrite is the engine that does copying on individual objects. It checksums and copies them with verifiable integrity, underpinning our Data Copying requirements.

copyrite exposes three commands - generate, check and copy - and is designed to:

  • Calculate multiple checksums in parallel with a single read pass over the data, supporting MD5, SHA and CRC varieties as well as AWS-style ETags.
  • Copy files concurrently between S3 and local storage with verified integrity, choosing part sizes that are as optimal as possible.
  • Avoid unnecessary work by reusing checksums that already exist natively in the object store, such as S3 ETags and HeadObject metadata.
  • Source credentials from environment variables or AWS Secrets Manager, and target S3-compatible stores outside AWS, such as Ceph or GCP.

To avoid recomputing checksums, copyrite saves results to a JSON .sums file alongside the object. New checksums are merged into the existing file, so the results propagate through to future operations on the same data. These are the same .sums files we plan to tie into our dataset formatting. A check compares two objects and reports the matching checksum that proves they are identical, and can compute only the minimal set of missing checksums needed to do so.

When copying, copyrite behaves like a sync, it only transfers an object if it is absent or has mismatched checksums, and uses server-side CopyObject where possible to avoid downloading and re-uploading. It avoid re-calculating ETags if possible, verifies the destination against the source once. A statistics JSON block is outputted, which we plan to integrate into cost reporting with steps-s3-copy and curtrail. This works towards our requirement to keep copy costs controllable and minimised.