Skip to content

How to extract All-in-One WP Migration wpress file

All-in-One WP Migration .wpress archives can be very large, and importing them through the plugin’s web interface may be too slow or time out. As an alternative, you can upload the .wpress file to your account and extract it manually via SSH.

All Hawk Host servers include Node.js. Install the extraction tool with:

Terminal window
npm install wpress-extract

Once installed, the binary is located at:

~/node_modules/.bin/wpress-extract
Terminal window
~/node_modules/.bin/wpress-extract mywordpress.wpress

Replace mywordpress.wpress with the name of your .wpress file. This creates a folder with the same name containing all extracted files, including a database.sql file.

The database.sql file uses a placeholder prefix that must be replaced with your actual WordPress table prefix (typically wp_). First, determine which placeholder your file uses:

Terminal window
grep -i SERVMASK database.sql

Then run the appropriate replacement:

If the output shows SERVMASKPREFIX_:

Terminal window
sed -i 's/SERVMASKPREFIX_/wp_/g' database.sql

If the output shows SERVMASK_PREFIX_:

Terminal window
sed -i 's/SERVMASK_PREFIX_/wp_/g' database.sql
  1. Import database.sql into your WordPress database using phpMyAdmin or the MySQL command line.

  2. Copy the remaining files and folders from the extracted directory into your WordPress installation’s wp-content directory.

If you need assistance with this process, contact our support team and we can complete the import for you.