Version Description
- Fixed issue with restoration when site was restored on same domain but different server
- Improved force-stop functionality, it will now clean-up temporary theme after failed restoration
- Added directory check of temporary theme during restoration
Download this release
Release Info
Developer | iclyde |
Plugin | Backup Migration |
Version | 1.2.4 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.2.4
- backup-backup.php +2 -2
- includes/ajax.php +4 -0
- includes/database/even-better-restore-v4.php +11 -5
- includes/extracter/extract.php +3 -1
- readme.txt +11 -43
backup-backup.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI: https://backupbliss.com/
|
8 |
* Plugin URI: https://backupbliss.com
|
9 |
* Text Domain: backup-backup
|
10 |
-
* Version: 1.2.
|
11 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
12 |
|
13 |
// Exit on direct access
|
@@ -21,7 +21,7 @@
|
|
21 |
define('BMI_DEBUG', false);
|
22 |
}
|
23 |
if (!defined('BMI_VERSION')) {
|
24 |
-
define('BMI_VERSION', '1.2.
|
25 |
}
|
26 |
if (!defined('BMI_ROOT_DIR')) {
|
27 |
define('BMI_ROOT_DIR', __DIR__);
|
7 |
* Author URI: https://backupbliss.com/
|
8 |
* Plugin URI: https://backupbliss.com
|
9 |
* Text Domain: backup-backup
|
10 |
+
* Version: 1.2.4
|
11 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
12 |
|
13 |
// Exit on direct access
|
21 |
define('BMI_DEBUG', false);
|
22 |
}
|
23 |
if (!defined('BMI_VERSION')) {
|
24 |
+
define('BMI_VERSION', '1.2.4');
|
25 |
}
|
26 |
if (!defined('BMI_ROOT_DIR')) {
|
27 |
define('BMI_ROOT_DIR', __DIR__);
|
includes/ajax.php
CHANGED
@@ -2440,6 +2440,10 @@
|
|
2440 |
|
2441 |
$filesToBeRemoved = [];
|
2442 |
|
|
|
|
|
|
|
|
|
2443 |
$tmpDirectory = BMI_ROOT_DIR . DIRECTORY_SEPARATOR . 'tmp';
|
2444 |
if (!is_dir($tmpDirectory)) @mkdir($tmpDirectory, 0755, true);
|
2445 |
|
2440 |
|
2441 |
$filesToBeRemoved = [];
|
2442 |
|
2443 |
+
$themedir = get_theme_root();
|
2444 |
+
$tempTheme = $themedir . DIRECTORY_SEPARATOR . 'backup_migration_restoration_in_progress';
|
2445 |
+
$filesToBeRemoved[] = $tempTheme;
|
2446 |
+
|
2447 |
$tmpDirectory = BMI_ROOT_DIR . DIRECTORY_SEPARATOR . 'tmp';
|
2448 |
if (!is_dir($tmpDirectory)) @mkdir($tmpDirectory, 0755, true);
|
2449 |
|
includes/database/even-better-restore-v4.php
CHANGED
@@ -397,10 +397,6 @@ class BMI_Even_Better_Database_Restore {
|
|
397 |
$this->logger->log($info, 'INFO');
|
398 |
$status['fieldAdjustments']++;
|
399 |
|
400 |
-
} else {
|
401 |
-
|
402 |
-
// $this->logger->log(__('Path adjustments are not required for this table.', 'backup-backup'), 'INFO');
|
403 |
-
|
404 |
}
|
405 |
|
406 |
if ($status['currentPage'] >= $status['totalPages']) {
|
@@ -412,7 +408,8 @@ class BMI_Even_Better_Database_Restore {
|
|
412 |
|
413 |
} else {
|
414 |
|
415 |
-
$status['step'] = $step + 1;
|
|
|
416 |
|
417 |
}
|
418 |
}
|
@@ -510,7 +507,16 @@ class BMI_Even_Better_Database_Restore {
|
|
510 |
$status['totalPages'] = 0;
|
511 |
$status['step'] = $step + 1;
|
512 |
}
|
|
|
513 |
return $status;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
514 |
}
|
515 |
}
|
516 |
|
397 |
$this->logger->log($info, 'INFO');
|
398 |
$status['fieldAdjustments']++;
|
399 |
|
|
|
|
|
|
|
|
|
400 |
}
|
401 |
|
402 |
if ($status['currentPage'] >= $status['totalPages']) {
|
408 |
|
409 |
} else {
|
410 |
|
411 |
+
$status['step'] = $step + 1;
|
412 |
+
$step++;
|
413 |
|
414 |
}
|
415 |
}
|
507 |
$status['totalPages'] = 0;
|
508 |
$status['step'] = $step + 1;
|
509 |
}
|
510 |
+
|
511 |
return $status;
|
512 |
+
|
513 |
+
} else {
|
514 |
+
|
515 |
+
$status['currentPage'] = 0;
|
516 |
+
$status['totalPages'] = 0;
|
517 |
+
$status['step'] = 8;
|
518 |
+
$step = 8;
|
519 |
+
|
520 |
}
|
521 |
}
|
522 |
|
includes/extracter/extract.php
CHANGED
@@ -273,7 +273,9 @@
|
|
273 |
|
274 |
$themedir = get_theme_root();
|
275 |
$tempTheme = $themedir . DIRECTORY_SEPARATOR . 'backup_migration_restoration_in_progress';
|
276 |
-
|
|
|
|
|
277 |
|
278 |
$visitLaterText = __('Site restoration in progress, please visit that website a bit later, thank you! :)', 'backup-backup');
|
279 |
file_put_contents($tempTheme . DIRECTORY_SEPARATOR . 'header.php', '<?php wp_head(); show_admin_bar(true);');
|
273 |
|
274 |
$themedir = get_theme_root();
|
275 |
$tempTheme = $themedir . DIRECTORY_SEPARATOR . 'backup_migration_restoration_in_progress';
|
276 |
+
if (!(file_exists($tempTheme) && is_dir($tempTheme))) {
|
277 |
+
@mkdir($tempTheme, 0755, true);
|
278 |
+
}
|
279 |
|
280 |
$visitLaterText = __('Site restoration in progress, please visit that website a bit later, thank you! :)', 'backup-backup');
|
281 |
file_put_contents($tempTheme . DIRECTORY_SEPARATOR . 'header.php', '<?php wp_head(); show_admin_bar(true);');
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Migrate
|
|
3 |
Tags: Backup, Migration, Migrate, Backups, Restore, All In One, Duplicate, Clone, Import, Export, Transfer
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 6.1
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPLv3
|
8 |
Requires PHP: 5.6
|
9 |
|
@@ -144,6 +144,11 @@ Vietnamese: [Tạo sao lưu, khôi phục các bản sao lưu và di chuyển c
|
|
144 |
|
145 |
== Changelog ==
|
146 |
|
|
|
|
|
|
|
|
|
|
|
147 |
= 1.2.3 =
|
148 |
* Permanently excluded link files from the backup (directories and files)
|
149 |
* Permanently excluded non-readable files from the backup to prevent errors.
|
@@ -445,45 +450,8 @@ Vietnamese: [Tạo sao lưu, khôi phục các bản sao lưu và di chuyển c
|
|
445 |
* Initial release
|
446 |
|
447 |
== Upgrade Notice ==
|
448 |
-
= 1.2.
|
449 |
-
What's new in 1.2.
|
450 |
-
*
|
451 |
-
*
|
452 |
-
*
|
453 |
-
* Removed unused debug dd() function to prevent conflicts
|
454 |
-
* Adjusted bytes to read converter to display proper size value on string data
|
455 |
-
* Changed action hook of plugin's settings – script and style
|
456 |
-
* Fixed issues with notices/warnings of unaccessible variables (backup)
|
457 |
-
* Set new database export engine as default (v4, requires at least v1.2.2 to restore)
|
458 |
-
* Added possibility to disable space check step, not recommend but may help in some cases
|
459 |
-
* Updated out of the box backup paths of other plugins - exclusion rules (5 new)
|
460 |
-
* Fixed temporary files clean-up after restoration (fail and successful)
|
461 |
-
* Modified default size of query output – new value: 2000
|
462 |
-
* Added support for batching to search & replace step (restoration/migration)
|
463 |
-
* Added new option for search & replace, allows to set page size – default 300
|
464 |
-
* Removed unused deactivation module from source code
|
465 |
-
* Added hints of how to properly create support topic
|
466 |
-
* Fixed close button for restoration/migration process error window
|
467 |
-
* Adjusted style of logs for database (now current table will be displayed as step)
|
468 |
-
* Fixed percentages above 100% for database table progress in logs
|
469 |
-
* Adjusted old v3 database engine to support new search replace method
|
470 |
-
* Added automatic temporary theme for the time of restoration/migration
|
471 |
-
* All other plugins will be now automatically disabled during db migration/restoration
|
472 |
-
* Fixed rare issue when wp-config.php was empty after restoration
|
473 |
-
* Fixed issues with database restoration of tables with columns using reserved names (like "key")
|
474 |
-
* Fixed issues with search & replace of tables with columns using reserved names (like "key")
|
475 |
-
* Added improvements for restoration at TasteWP.com
|
476 |
-
* Updated v3 restoration engine (old backups) to not activate problematic plugins
|
477 |
-
* Added batching for database export during backup process (only alternate backup methods)
|
478 |
-
* Added option which allows to toggle batching technique of database export (disabled by default)
|
479 |
-
* Fully tested on WordPress 6.1 with PHP 7.4, 8.0 and 8.1
|
480 |
-
* Fixed Super-Quick Migration automatic restoration continuation
|
481 |
-
* Fixed download URL and Super-Quick Migration URL displayed after backup process
|
482 |
-
* Premium: Fixed database table exclusion rules in different backup methods
|
483 |
-
* Added additional check for non-readable files in legacy backup methods
|
484 |
-
* Minimized possibility of damaged backup with success window
|
485 |
-
* Resolved issues with freezing live-log in/with PHP CLI mode
|
486 |
-
* Resolved issues with freezing live-log in/with PHP CLI mode
|
487 |
-
* Fixed multisite restoration while blog domain used www. while new website don't
|
488 |
-
* Adjusted engine selector for compatibility with older restoration methods
|
489 |
-
* Adjusted auto-login after restoration to work with forum-like plugins and new version of WP
|
3 |
Tags: Backup, Migration, Migrate, Backups, Restore, All In One, Duplicate, Clone, Import, Export, Transfer
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 6.1
|
6 |
+
Stable tag: 1.2.4
|
7 |
License: GPLv3
|
8 |
Requires PHP: 5.6
|
9 |
|
144 |
|
145 |
== Changelog ==
|
146 |
|
147 |
+
= 1.2.4 =
|
148 |
+
* Fixed issue with restoration when site was restored on same domain but different server
|
149 |
+
* Improved force-stop functionality, it will now clean-up temporary theme after failed restoration
|
150 |
+
* Added directory check of temporary theme during restoration
|
151 |
+
|
152 |
= 1.2.3 =
|
153 |
* Permanently excluded link files from the backup (directories and files)
|
154 |
* Permanently excluded non-readable files from the backup to prevent errors.
|
450 |
* Initial release
|
451 |
|
452 |
== Upgrade Notice ==
|
453 |
+
= 1.2.4 =
|
454 |
+
What's new in 1.2.4?
|
455 |
+
* Fixed issue with restoration when site was restored on same domain but different server
|
456 |
+
* Improved force-stop functionality, it will now clean-up temporary theme after failed restoration
|
457 |
+
* Added directory check of temporary theme during restoration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|