Migration Flow
Understand exactly what wpclone does step by step
High-level flow
- Validate input options and dependencies.
- Transfer files with rsync (unless skipped).
- Export database on source.
- Import database on destination.
- Run URL replacement.
- Perform post-migration tasks.
Detailed steps
1) Validation
- Checks required options.
- Checks local tools like
sshandrsync. - Checks remote tools and switches DB method if needed.
2) File transfer
- Uses rsync over SSH.
- Supports
--excludepatterns. - Can be skipped with
--skip-files.
3) Database transfer
- Uses WP-CLI by default.
- Falls back to mysqldump/mysql if WP-CLI unavailable.
- Can be skipped with
--skip-db.
4) URL replacement
- Uses
wp search-replacefor safe serialized replacement. - Can be skipped with
--skip-url-replace.
5) Finalization
- Cache flush
- Rewrite flush
- Permissions hardening