If you don't want to pay for the PRO version of this plugin, and you want to use the "Restore from Server" functionally that was present in the version 6.77, follow the instructions below:
- Open the js file: wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/backups.min.js
- On line 1208, replace the code below:
$('.ai1wm-backup-restore').click(function (e) {
e.preventDefault();
if (!!Ai1wm.MultisiteExtensionRestore) {
var restore = new Ai1wm.MultisiteExtensionRestore($(this).data('archive'));
} else if (!!Ai1wm.UnlimitedExtensionRestore) {
var restore = new Ai1wm.UnlimitedExtensionRestore($(this).data('archive'));
} else if (!!Ai1wm.FreeExtensionRestore) {
var restore = new Ai1wm.FreeExtensionRestore($(this).data('archive'));
} else {
var restore = new Ai1wm.Restore($(this).data('archive'));
}
});
with the following code:
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-restore', function (e) {
e.preventDefault();
var modelimport = new Import();
var storage = Ai1wm.Util.random(12);
var options = Ai1wm.Util.form('#ai1wm-backups-form').concat({ name: 'storage', value: storage }).concat({ name: 'archive', value: $(this).data('archive') });
// Set global params
modelimport.setParams(options);
// Start import
modelimport.start();
});
- Go to your All-in-One WP Migration > Backups page and you should be able to use the Restore button now.
Can't get this to work for me, sadly. Working on All-in-One WP Migration 7.72
Tried @alvindex 's solution, although there are some steps I don't understand:
What do you mean by "modified file"? In which way does it have to be modified?
What do you mean by "reconnect to the site"?
This is what I tried:
Install All-in-One WP Migration (leave deactivated)
Upload backup file to "ai1wm-backups" folder
Empty folder except for backup file (some files always reappear, e.g. robots.txt, index.html, and a few more)
Activate plugin
Empty browser cache
Not sure what is meant by "reconnect to the site", I tried closing the tab and re-opening it
Open "Import" screen of AIO WP Migration
Paste @xxxdepy code snippet into console whilst replacing "REPLACE-WITH-ARCHIVE-NAME" with the name of the backup file
Hit Enter
A popup "Preparing for import" opens and I see a loading animation - after a few minutes, the popup closes and nothing happened.
What did I miss?
Thanks in advance!