Restore a local dump into a branch

backups & data

// what it does

Loads a directory of dump files into a Vitess branch — the import half of migrating into PlanetScale or seeding a branch with real data. --overwrite-tables drops and recreates tables that already exist; --starting-table resumes an interrupted restore.

// shell

$ pscale database restore-dump mydb import-branch --dir ./dump
$ pscale database restore-dump mydb import-branch --dir ./dump --overwrite-tables --show-details

// gotcha

Import into a development branch, verify, then promote or deploy-request the result — never restore straight into production. Files dumped from a differently-named database need --allow-different-destination.

// resources