WP Clone Docs

Config File

Configure migration once and reuse everywhere

Use a config file to make migrations repeatable.

Create config

cp migration.conf.example migration.conf

Run with config

./wpclone --config migration.conf

Example

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=0

Notes

  • Use key=value format.
  • Lines starting with # are comments.
  • EXCLUDE can be repeated for multiple patterns.
  • Unknown keys are ignored with warning output.

On this page