Skip to content

Instantly share code, notes, and snippets.

@thetwopct
Created January 10, 2025 16:20
Show Gist options
  • Save thetwopct/6681160a62f8dcb269575bca7c076e74 to your computer and use it in GitHub Desktop.
Save thetwopct/6681160a62f8dcb269575bca7c076e74 to your computer and use it in GitHub Desktop.
All-In-One WP Migration - Restore from Backup
# Step 1 - Upload your export .wpress file to the ai1wm-backups folder. Copy the filename.
# Step 2 - Navigate to the Backups page of AI1WM.
# Step 3 - Open your browser console. Update the following and then paste it in.
var filename = 'FILENAME.wpress';
var importer = new Ai1wm.Import();
var storage = Ai1wm.Util.random(12);
var options = Ai1wm.Util.form('#ai1wm-backups-form').concat({name: 'storage', value: storage}).concat({name: 'archive', value: filename});
importer.setParams(options);
importer.start();
# Step 4 - Use AI1WM as normal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment