Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

restore mysql

peppykeep restore mysql Restore the local backup to a standalone MySQL target library. Only local backup files are supported; remote objects should be downloaded to the local machine first.

peppykeep restore mysql \
  --backup-file /data/backups/app.ppke \
  --target-db-name app_restore \
  --config-home /path/to/conf

Add --apply after confirming dry-run. Restore must use a separate [restore.mysql] configuration in bak.toml, prohibiting multiplexing of production [mysql] connections. To delete a target library, you must also provide --drop-target-db and exactly ‘–confirm-target-db’.

It is recommended to execute in a standalone recovery environment and leave the workspace for troubleshooting by default.