Data UI Backlog

Cross-site snapshot copy verb

One verb form for the three-step, two-host flow that copies data between a production instance on another site and dev. Today (docs/deployment.md → Production Backups → Example) that is: ssh to the site, snapshot or list there, assemble an scp for the triple into /data/data-ui/snapshots/ on evo-x2, then scripts/data-ui snapshot restore <name> dev:<model>. The goal is only to remove the ssh, the listing and the hand-assembled scp; the restore stays a hand-run step.

The grammar

A site prefix — <site>: — qualifies a snapshot name. It never qualifies an address. A colon is illegal in a snapshot name, so the in-pool copy <src-name> <dst-name> [<model>] and the transfer cannot be confused.

scripts/data-ui snapshot list   prod-2:                                   # a site's whole pool
scripts/data-ui snapshot save   prod-2:prd-backlog-keep-1 prd:backlog     # snapshot on the spot
scripts/data-ui snapshot copy   prod-2:prd-backlog-keep-1 prd-backlog-keep-1
scripts/data-ui snapshot restore prd-backlog-keep-1 dev:backlog            # unchanged, hand-run

Behavior

The site rule

A production-only site (SITE_PRODUCTION_ONLY) exchanges pools only with other production-only sites:

This is the existing flag applied at the existing boundary (production_only_refuses in scripts/data-ui), not a new concept.

Also in this plan

Fix the ~/.ssh/config accumulation. publish-eip in ops/prod-2-aws.sh appends a Host prod-2 stanza on every run, and the evo-x2 file currently holds three identical ones. ssh honors the first stanza, so after an address change a newer one would be silently ignored. publish-eip must replace the stanza instead of appending, and the existing duplicates must be cleaned up.

Docs: docs/cli.md (the snapshot section), docs/snapshots.md, docs/deployment.md (the Production Backups example), and the script's help text.

Follow-up

rsync instead of scp is a separate item filed right after this one: SceneBook's photos tar can be gigabytes and scp re-sends it whole on every copy. Out of time for now.

Related

Slot
7276
Status
10 Open
Tags
scripts, ops, prod, mvp
Contributors
Donnie, Sofia