Config File
Configure migration once and reuse everywhere
Use a config file to make migrations repeatable.
Create config
cp migration.conf.example migration.confRun with config
./wpclone --config migration.confExample
SRC_HOST=deploy@old-server.com
SRC_PATH=/var/www/html
DST_HOST=deploy@new-server.com
DST_PATH=/var/www/html
OLD_URL=https://old-site.com
NEW_URL=https://new-site.com
DB_METHOD=wpcli
VERBOSE=0
DRY_RUN=0Notes
- Use
key=valueformat. - Lines starting with
#are comments. EXCLUDEcan be repeated for multiple patterns.- Unknown keys are ignored with warning output.