Usage
Required options, common flags, and migration commands
Usage
General syntax:
wpclone [OPTIONS]
wpclone --config migration.confRequired options
- --src-host
- --src-path
- --dst-host
- --dst-path
- --old-url
- --new-url
Common options
- --config
- --db-method wpcli or mysqldump
- --skip-files
- --skip-db
- --skip-url-replace
- --exclude
- --dry-run
- --verbose
Environment variables
WPCLONE_DEBUG=1enable debug output.WPCLONE_LOG=<path>customize log file path.
Examples
Full migration
./wpclone \
--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.comFiles only
./wpclone --config migration.conf --skip-dbDatabase only
./wpclone --config migration.conf --skip-filesDry run
WPCLONE_DEBUG=1 ./wpclone --config migration.conf --dry-runRecommended migration flow
- Prepare migration.conf with source and destination values
- Run dry-run and review output
- Run real migration
- Verify site URL and admin login
- Flush cache if needed