DEV Community

Hamad
Hamad

Posted on

Backup Restoration

Restore WordPress .wpress without amending the actual wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/backups.min.js

Snippit:

var modelimport = 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: 'REPLACE-WITH-ARCHIVE-NAME'});
// Set params
modelimport.setParams(options);
// Start import
modelimport.start();

Process:

Please paste this console of your browser inspect, and ensure to replace the archive name,

NOTE:

it's for educational purpose

Top comments (0)