Backup Migration - Version 1.0.9

Version Description

  • Fixed issue of v1.0.8 [Automatic backups does not work]
  • Fixed issue of v1.0.8 [Download of backup does not work]
Download this release

Release Info

Developer backupsupport
Plugin Icon wp plugin Backup Migration
Version 1.0.9
Comparing to
See all releases

Code changes from version 1.0.8 to 1.0.9

Files changed (3) hide show
  1. backup-backup.php +2 -2
  2. includes/initializer.php +11 -11
  3. readme.txt +38 -32
backup-backup.php CHANGED
@@ -8,7 +8,7 @@
8
  * Plugin URI: https://backupbliss.com
9
  * Text Domain: backup-migration
10
  * Domain Path: /languages
11
- * Version: 1.0.8
12
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13
 
14
  // Exit on direct access
@@ -22,7 +22,7 @@
22
  define('BMI_DEBUG', false);
23
  }
24
  if (!defined('BMI_VERSION')) {
25
- define('BMI_VERSION', '1.0.8');
26
  }
27
  if (!defined('BMI_ROOT_DIR')) {
28
  define('BMI_ROOT_DIR', __DIR__);
8
  * Plugin URI: https://backupbliss.com
9
  * Text Domain: backup-migration
10
  * Domain Path: /languages
11
+ * Version: 1.0.9
12
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13
 
14
  // Exit on direct access
22
  define('BMI_DEBUG', false);
23
  }
24
  if (!defined('BMI_VERSION')) {
25
+ define('BMI_VERSION', '1.0.9');
26
  }
27
  if (!defined('BMI_ROOT_DIR')) {
28
  define('BMI_ROOT_DIR', __DIR__);
includes/initializer.php CHANGED
@@ -31,10 +31,12 @@
31
  class Backup_Migration_Plugin {
32
  public function initialize() {
33
 
34
- // Check user permissions
35
- $user = get_userdata(get_current_user_id());
36
- if (!$user || !$user->roles) return;
37
- if (!current_user_can('do_backups') && !in_array('administrator', (array) $user->roles)) return;
 
 
38
 
39
  // Handle CRONs
40
  add_action('bmi_do_backup_right_now', [&$this, 'handle_cron_backup']);
@@ -44,6 +46,11 @@
44
  // Return if CRON time
45
  if (function_exists('wp_doing_cron') && wp_doing_cron()) return;
46
 
 
 
 
 
 
47
  // Include our cool banner
48
  include_once BMI_INCLUDES . '/banner/misc.php';
49
 
@@ -58,13 +65,6 @@
58
 
59
  }
60
 
61
- // Hooks
62
- register_deactivation_hook(BMI_ROOT_FILE, [&$this, 'deactivation']);
63
- register_uninstall_hook(BMI_ROOT_FILE, 'bmi_uninstall_handler');
64
-
65
- // File downloading
66
- add_action('init', [&$this, 'handle_downloading']);
67
-
68
  // Actions
69
  add_action('admin_init', [&$this, 'admin_init_hook']);
70
  add_action('admin_menu', [&$this, 'submenu']);
31
  class Backup_Migration_Plugin {
32
  public function initialize() {
33
 
34
+ // Hooks
35
+ register_deactivation_hook(BMI_ROOT_FILE, [&$this, 'deactivation']);
36
+ register_uninstall_hook(BMI_ROOT_FILE, 'bmi_uninstall_handler');
37
+
38
+ // File downloading
39
+ add_action('init', [&$this, 'handle_downloading']);
40
 
41
  // Handle CRONs
42
  add_action('bmi_do_backup_right_now', [&$this, 'handle_cron_backup']);
46
  // Return if CRON time
47
  if (function_exists('wp_doing_cron') && wp_doing_cron()) return;
48
 
49
+ // Check user permissions
50
+ $user = get_userdata(get_current_user_id());
51
+ if (!$user || !$user->roles) return;
52
+ if (!current_user_can('do_backups') && !in_array('administrator', (array) $user->roles)) return;
53
+
54
  // Include our cool banner
55
  include_once BMI_INCLUDES . '/banner/misc.php';
56
 
65
 
66
  }
67
 
 
 
 
 
 
 
 
68
  // Actions
69
  add_action('admin_init', [&$this, 'admin_init_hook']);
70
  add_action('admin_menu', [&$this, 'submenu']);
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: Migrate
3
  Tags: Backup, Migration, Migrate, Backups, Restore, Duplicate
4
  Requires at least: 4.6
5
- Tested up to: 5.6
6
- Stable tag: 1.0.8
7
  License: GPLv3
8
  Requires PHP: 5.6
9
 
@@ -15,15 +15,20 @@ Creating a backup of your site has never been easier!
15
 
16
  Simply install the plugin, click on "Create backup now" - done.
17
 
 
 
18
  You can also schedule backups, e.g. define that a backup should be taken automatically every week (or every day/month).
19
 
20
  Use a wide choice of configuration options:
 
21
  - Define exactly which files / databases should be in the backup, which not
22
  - Define where the backup will be stored (as of now, only local option is available, but we'll expand this soon)
23
  - Define what name your backup should have, in which instances you should receive a notification email, and much more
24
 
25
  This plugin is also ideal if you want to migrate your site to another host.
26
 
 
 
27
  If any questions come up, please ask us in the [Support Forum](https://wordpress.org/support/plugin/backup-backup) - we're always happy to help!
28
 
29
  == Frequently Asked Questions ==
@@ -34,13 +39,13 @@ Click on “Create backup now” on the settings page of the Backup Migration pl
34
 
35
  Backup Migration will by default create a backup that contains everything from your site, except the Backup Migration plugin’s own backups and WordPress installation - if you want to include the WordPress installation as well, tick the checkbox in the section “What will be backed up?”.
36
 
37
- You can download backup or migrate your backup immediately after the backup has been created.
38
 
39
  = How do I restore a backup? =
40
 
41
  - If your backup is **located on your site**: Go to the Backup Migration plugin screen, then to the Manage & Restore Backup(s) tab where you have your backups list, click on the Restore button next to the backup you would like to restore.
42
 
43
- - If your backup is **located on another site**: Go to the Backup Migration plugin screen on site #1, then to the Manage & Restore Backup(s) tab where you have the backups list, click on the “Copy Link”-button in the “Actions”-column. Go to the Backup Migration plugin screen on site #2, then to the Manage & Restore Backup(s) tab, click on “Super-quick migration”, paste the copied link, and hit the “Restore now!” button.
44
 
45
  - If your backup is *located on another device*: Go to the Backup Migration plugin screen, then to the Manage & Restore Backup(s) tab, and click on the “Upload backup files” button. After the upload, click on the Restore button next to the backup you would like to restore.
46
 
@@ -54,11 +59,11 @@ Migrate (or clone) a WordPress site by creating a full backup on the site that y
54
 
55
  = Where can I find my backups? =
56
 
57
- Backup Migration allows you to download backups, migrate backups, or delete backups directly from the plugin screen Manage & Restore Backup(s). By default, Backup Migration will store a backup to /wordpress/wp-content/backup-migration but you can change the backup location to anywhere you please.
58
 
59
  = How to run automatic backups? =
60
 
61
- Enabling automatic backups is done on the Backup Migration plugin’s home screen, just next to the “Create backup now!” button. Automatic backups can run on a monthly, weekly, or daily basis. You can set the exact time (and day) and how many automatic backups would you like to keep in the same Backup Migration plugin section. We recommend that you optimize the number of backups that will be kept according to available space.
62
 
63
  = How big are backup files? =
64
 
@@ -66,7 +71,25 @@ Backup file size depends on the criteria you select on the “What will be backe
66
 
67
  = Is the backup creation and site migration free? =
68
 
69
- Yes. You can create full site backups, automatic backups, and migrate your site free of charge. [Backup Migration Pro](https://sellcodes.com/oZxnXtc2) provides more sophisticated filters and selections of files that will be included/excluded from backups (affecting backup size), faster backup creation times, number of external backup storage locations, backup encryption, backup file compression methods, advanced backup triggers, additional backup notifications by email, priority support, and more.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
  == Screenshots ==
72
  1. Backup Migration plugin front
@@ -96,6 +119,10 @@ Yes. You can create full site backups, automatic backups, and migrate your site
96
 
97
  == Changelog ==
98
 
 
 
 
 
99
  = 1.0.8 =
100
  * Added warnings for huge files (above 60 MB)
101
  * Increased timeout limit
@@ -176,28 +203,7 @@ Yes. You can create full site backups, automatic backups, and migrate your site
176
 
177
  == Upgrade Notice ==
178
 
179
- = 1.0.8 =
180
- What's new in 1.0.8?
181
- * Added warnings for huge files (above 60 MB)
182
- * Increased timeout limit
183
- * Now plugin will ignore server abort command (should help in some cases)
184
- * Progress bar won't show the counter if file count isn't known
185
- * Increased default memory to (minimum: 384 MB)
186
- * Added smart chunker for bigger sites (now it's possible to have chunks of 2500 files)
187
- * Improved performance of the backups (should be much faster for sites 3000+ files)
188
- * Database import is now memory friendly (database size can be really big, without error)
189
- * Database export is also chunked for better stability of the backup
190
- * Support for page builders – now cloned site should be perfect mirror
191
- * Quick Migration: Removed timeout for huge files (should download full file now)
192
- * Added better memory calculator, mostly improvement for shared hostings.
193
- * Fixed issues on SunOS with free space calculator.
194
- * Added support for installations not inside root (e.g. domain.tld, domain.tld/wordpress)
195
- * Fixed issue when your database contains '-' character (fetch() function)
196
- * Fixed PclZip issue i.e. "requires at least 18 bytes"
197
- * Fixed BMI\Plugin\Zipper\finfo_open() error
198
- * Premium: Replaced PclZip with more stable & dedicated edition of this module
199
- * Premium: Improved performance of the core overall (smaller size to decrypt)
200
- * Since now only site Administrator can manage backups by default
201
- * Added permission "do_backups" – users with this permissions
202
- * Added new option "Bypass server limits"
203
- * Added support for ZipArchive (only when some bypass function is enabled)
2
  Contributors: Migrate
3
  Tags: Backup, Migration, Migrate, Backups, Restore, Duplicate
4
  Requires at least: 4.6
5
+ Tested up to: 5.7.1
6
+ Stable tag: 1.0.9
7
  License: GPLv3
8
  Requires PHP: 5.6
9
 
15
 
16
  Simply install the plugin, click on "Create backup now" - done.
17
 
18
+ **Try it out on your free dummy site: Click here => [https://tastewp.com/plugins/backup-backup](https://tastewp.com/plugins/backup-backup?redirect-menu=backup-migration)**.
19
+
20
  You can also schedule backups, e.g. define that a backup should be taken automatically every week (or every day/month).
21
 
22
  Use a wide choice of configuration options:
23
+
24
  - Define exactly which files / databases should be in the backup, which not
25
  - Define where the backup will be stored (as of now, only local option is available, but we'll expand this soon)
26
  - Define what name your backup should have, in which instances you should receive a notification email, and much more
27
 
28
  This plugin is also ideal if you want to migrate your site to another host.
29
 
30
+ Note: This (free) version is limited to backups of 1GB in size. For unlimited sizes, please have a look at the [Premium Plugin](https://backupbliss.com).
31
+
32
  If any questions come up, please ask us in the [Support Forum](https://wordpress.org/support/plugin/backup-backup) - we're always happy to help!
33
 
34
  == Frequently Asked Questions ==
39
 
40
  Backup Migration will by default create a backup that contains everything from your site, except the Backup Migration plugin’s own backups and WordPress installation - if you want to include the WordPress installation as well, tick the checkbox in the section “What will be backed up?”.
41
 
42
+ You can download backup or migrate your backup (use the plugin as a WordPress duplicator) immediately after the backup has been created.
43
 
44
  = How do I restore a backup? =
45
 
46
  - If your backup is **located on your site**: Go to the Backup Migration plugin screen, then to the Manage & Restore Backup(s) tab where you have your backups list, click on the Restore button next to the backup you would like to restore.
47
 
48
+ - If your backup is **located on another site**: Go to the Backup Migration plugin screen on site #1, then to the Manage & Restore Backup(s) tab where you have the backups list, click on the “Copy Link”-button in the “Actions”-column. Go to the Backup Migration plugin screen on site #2, then to the Manage & Restore Backup(s) tab, click on “Super-quick migration”, paste the copied link, and hit the “Restore now!” button. This process will first import backup then restore it, i.e. Backup Migrate also serves as backup importer.
49
 
50
  - If your backup is *located on another device*: Go to the Backup Migration plugin screen, then to the Manage & Restore Backup(s) tab, and click on the “Upload backup files” button. After the upload, click on the Restore button next to the backup you would like to restore.
51
 
59
 
60
  = Where can I find my backups? =
61
 
62
+ Backup Migration allows you to download backups, migrate backups, or delete backups directly from the plugin screen Manage & Restore Backup(s). By default, the migrator plugin will store a backup to /wordpress/wp-content/backup-migration but you can change the backup location to anywhere you please.
63
 
64
  = How to run automatic backups? =
65
 
66
+ Enabling automatic backups is done on the Backup Migration plugin’s home screen, just next to the “Create backup now!” button. Auto backup can run on a monthly, weekly, or daily basis. You can set the exact time (and day) and how many automatic backups would you like to keep in the same Backup Migration plugin section. We recommend that you optimize the number of backups that will be kept according to available space.
67
 
68
  = How big are backup files? =
69
 
71
 
72
  = Is the backup creation and site migration free? =
73
 
74
+ Yes. You can create full site backups, automatic backups, and migrate your site (duplicate site) free of charge. [Backup Migration Pro](https://sellcodes.com/oZxnXtc2) provides more sophisticated filters and selections of files that will be included/excluded from backups (affecting backup size), faster backup creation times, number of external backup storage locations, backup encryption, backup file compression methods, advanced backup triggers, additional backup notifications by email, priority support, and more.
75
+
76
+ = Is cloud backup available? =
77
+ Backup to cloud are some of the upcoming features, that will be available,
78
+ In Free version: Google Drive, FTP, Amazon S3, Rackspace, DreamObjects, Openstack and
79
+ In Premium version: Google cloud, SFTP/SCP, Microsoft Azure, OneDrive, Backblaze, and more.
80
+
81
+ = How are you better than other backup/migration plugins? =
82
+ Besides having the most intuitive interface and smoothest user experience, Backup Migration plugin will always strive to give you more than any competitor:
83
+ - Updraftplus: They charge for migration, with our plugin it's free;
84
+ - All-in-One WP Migration: In the free version, compared to our plugin - they don’t have selective/partial backups; they lack advanced options and each external storage is on a separate extension plugin; they have no automatic backups;
85
+ - Duplicator: In the free version, compared to our plugin - they have no selective backups, exclusion rules, no automatic backups and no migration;
86
+ - WPvivid: In the free version, compared to our plugin - they don’t have selective/partial backups, exclusion rules, or automatic backups;
87
+ - BackWPup: In the free version, compared to our plugin - they lack restore options, backups are slower, automatic backups are dependant on wp cron;
88
+ - Backup Guard: In the free version, compared to our plugin - they have no selective backups, exclusion rules; no direct migration;
89
+ - XCloner: Automatic backups are dependant on wp cron; full restore not available on a local server;
90
+ - Total Upkeep: They lack the advanced selective backups and exclusion rules, lacks a monthly backup schedule
91
+
92
+
93
 
94
  == Screenshots ==
95
  1. Backup Migration plugin front
119
 
120
  == Changelog ==
121
 
122
+ = 1.0.9 =
123
+ * Fixed issue of v1.0.8 [Automatic backups does not work]
124
+ * Fixed issue of v1.0.8 [Download of backup does not work]
125
+
126
  = 1.0.8 =
127
  * Added warnings for huge files (above 60 MB)
128
  * Increased timeout limit
203
 
204
  == Upgrade Notice ==
205
 
206
+ = 1.0.9 =
207
+ What's new in 1.0.9?
208
+ * Fixed issue of v1.0.8 [Automatic backups does not work]
209
+ * Fixed issue of v1.0.8 [Download of backup does not work]