feat(scripts): remote migrate-storage script for MinIO to filesystem migration #138

Merged
forbes merged 1 commits from feat-remote-migrate-storage into main 2026-02-18 20:33:39 +00:00
Owner

Adds scripts/migrate-storage.sh that follows the same deploy.sh pattern: cross-compiles the migrate-storage binary locally, uploads it to the target host via SCP, then runs it over SSH using credentials from /etc/silo/silod.env.

Usage:

./scripts/migrate-storage.sh <silo-host> <psql-host> <minio-host> [flags...]

Example:

# Dry run
./scripts/migrate-storage.sh silo.kindred.internal psql.kindred.internal minio.kindred.internal -dry-run -verbose

# Actual migration
./scripts/migrate-storage.sh silo.kindred.internal psql.kindred.internal minio.kindred.internal

Flow:

  1. Builds cmd/migrate-storage for linux/amd64 on dev machine
  2. Uploads binary to target host via SCP
  3. SSHes in, sources /etc/silo/silod.env for credentials, writes a temp config with the provided DB/MinIO hosts, runs the migration to /opt/silo/data, cleans up
Adds `scripts/migrate-storage.sh` that follows the same `deploy.sh` pattern: cross-compiles the `migrate-storage` binary locally, uploads it to the target host via SCP, then runs it over SSH using credentials from `/etc/silo/silod.env`. **Usage:** ```bash ./scripts/migrate-storage.sh <silo-host> <psql-host> <minio-host> [flags...] ``` **Example:** ```bash # Dry run ./scripts/migrate-storage.sh silo.kindred.internal psql.kindred.internal minio.kindred.internal -dry-run -verbose # Actual migration ./scripts/migrate-storage.sh silo.kindred.internal psql.kindred.internal minio.kindred.internal ``` **Flow:** 1. Builds `cmd/migrate-storage` for linux/amd64 on dev machine 2. Uploads binary to target host via SCP 3. SSHes in, sources `/etc/silo/silod.env` for credentials, writes a temp config with the provided DB/MinIO hosts, runs the migration to `/opt/silo/data`, cleans up
forbes added 1 commit 2026-02-18 20:29:59 +00:00
Adds scripts/migrate-storage.sh that follows the same deploy.sh pattern:
cross-compiles the migrate-storage binary locally, uploads it to the
target host via SCP, then runs it over SSH using credentials from
/etc/silo/silod.env.

Usage: ./scripts/migrate-storage.sh <silo-host> <psql-host> <minio-host> [flags...]
forbes merged commit 9dabaf5796 into main 2026-02-18 20:33:39 +00:00
forbes deleted branch feat-remote-migrate-storage 2026-02-18 20:33:40 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/silo#138