Strand Migrate
Usage
Using `strand-migrate` to apply migrations to strand data and operational storage layouts.
Purpose
Migration tool for strand data and operational storage changes.
This page follows the real source shape for Strand Migrate and explains the workflow a developer is likely to use first.
Developer workflow
Start from the smallest constructor or builder, perform one meaningful operation, inspect the returned state, then add the relevant policy, storage, or network integration. The examples below should be expanded whenever the crate API changes.
Primary types to know
- No public items were detected by the source scan. This page should be updated when the crate exposes new items.
Example shape
# strand-migrate is invoked from a shell.
# Inspect a strand directory:
strand-migrate inspect /var/lib/weave/strands/my-log
# Migrate from v1 to v2 layout:
strand-migrate up /var/lib/weave/strands/my-log --from v1 --to v2
# Dry run (print plan, no writes):
strand-migrate up /var/lib/weave/strands/my-log --dry-run