mix ankusa.store.migrate (ankusa v0.7.0)

Copy Markdown View Source

Shows, or applies, the store format migrations a data directory needs before this release can serve from it.

mix ankusa.store.migrate --dry-run
mix ankusa.store.migrate --data-dir /var/lib/ankusa --instance default

The store is <data-dir>/<instance>/store. A node applies the same migrations by itself when it boots; run this to see the plan first (--dry-run, read-only, safe beside a running node), or to migrate ahead of a rollout. Without --dry-run the task opens the store, so stop the node that owns it first.

A store newer than this release is refused, as at boot, naming both versions.

Options:

  • --dry-run — print the plan, change nothing
  • --data-dir — default config :ankusa, :data_dir (./data)
  • --instance — default default