markei / dbmigrate
Script for migrating databases between environments, easy for use in a situation of Wordpress and DTAP
v0.1.4
2020-02-13 22:47 UTC
Requires
- dvdgiessen/dbsr: dev-master
This package is auto-updated.
Last update: 2024-12-19 15:00:55 UTC
README
Script for easy DTAP for Wordpress sites
Installation
Add markei/dbmigrate to require-lines in composer.json
Run composer update
Copy the example config to {project-root}/config/dbmigrate/dbmigrate.ini
Update the configuration with your own parameters
Usage
For Windows cd {project-root} vendor\bin\dbmigrate.php.bat
The script will list the configured environments
First fill in the source environment, second fill in the destination. Check your input and start.
- a backup of the source database will be made.
- a backup of the destination database will be made.
- the backup of the source database will be imported by the destination database
- the source domain will be replaced with the destination domain in the destination database