Version Description
Download this release
Release Info
Developer | wpdprx |
Plugin | BackUpWordPress |
Version | 0.2.2 |
Comparing to | |
See all releases |
Code changes from version 0.2.1 to 0.2.2
- backupwordpress.php +7 -1
- bkpwp-classes/manage_backups.php +16 -8
- bkpwp-pages/bkpwp_manage_backups.php +1 -1
- functions-interface.php +3 -1
backupwordpress.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: BackUpWordPress
|
|
4 |
Plugin URI: http://wordpress.designpraxis.at
|
5 |
Description: Manage <a href="admin.php?page=backupwordpress/backupwordpress.php">WordPress Backups</a>. Beta Release. Please help testing and give me feedback under the comments section of <a href="http://wordpress.designpraxis.at/plugins/backupwordpress/">the Plugin page</a>. Backup DB, Files & Folders, use .tar.gz, .zip, Exclude List, etc.
|
6 |
Author: Roland Rust
|
7 |
-
Version: 0.2.
|
8 |
Author URI: http://wordpress.designpraxis.at
|
9 |
*/
|
10 |
|
@@ -20,6 +20,11 @@ Whishlist:
|
|
20 |
|
21 |
Changelog:
|
22 |
|
|
|
|
|
|
|
|
|
|
|
23 |
Changes in 0.2.1:
|
24 |
- old Logfiles are deleted. 10 times the amount of the configured amount of backups to keep is kept.
|
25 |
- feature: backups are done in kind of a staggered process:
|
@@ -58,6 +63,7 @@ Changes in 0.1.2:
|
|
58 |
*/
|
59 |
//return;
|
60 |
$GLOBALS['bkpwp_plugin_path'] = ABSPATH."wp-content/plugins/backupwordpress/";
|
|
|
61 |
|
62 |
// get the functions
|
63 |
require_once($GLOBALS['bkpwp_plugin_path']."functions.php");
|
4 |
Plugin URI: http://wordpress.designpraxis.at
|
5 |
Description: Manage <a href="admin.php?page=backupwordpress/backupwordpress.php">WordPress Backups</a>. Beta Release. Please help testing and give me feedback under the comments section of <a href="http://wordpress.designpraxis.at/plugins/backupwordpress/">the Plugin page</a>. Backup DB, Files & Folders, use .tar.gz, .zip, Exclude List, etc.
|
6 |
Author: Roland Rust
|
7 |
+
Version: 0.2.2
|
8 |
Author URI: http://wordpress.designpraxis.at
|
9 |
*/
|
10 |
|
20 |
|
21 |
Changelog:
|
22 |
|
23 |
+
Changes in 0.2.2:
|
24 |
+
- Manage Backups now display the type, either scheduled or manual for Advanced as well as EasyMode
|
25 |
+
- logfile prints out WordPress and BackUpWordPress version for easier posting at http://wpforum.designpraxis.at/
|
26 |
+
- BackUpWordPress displays "Your backup is being processed" instead of the actions links on the Manage Backups screen as long as archiving is not finished
|
27 |
+
|
28 |
Changes in 0.2.1:
|
29 |
- old Logfiles are deleted. 10 times the amount of the configured amount of backups to keep is kept.
|
30 |
- feature: backups are done in kind of a staggered process:
|
63 |
*/
|
64 |
//return;
|
65 |
$GLOBALS['bkpwp_plugin_path'] = ABSPATH."wp-content/plugins/backupwordpress/";
|
66 |
+
$GLOBALS['bkpwp_version'] = "0.2.2";
|
67 |
|
68 |
// get the functions
|
69 |
require_once($GLOBALS['bkpwp_plugin_path']."functions.php");
|
bkpwp-classes/manage_backups.php
CHANGED
@@ -29,7 +29,8 @@ class BKPWP_BACKUP_ARCHIVE {
|
|
29 |
$values['preset'] = $p[1];
|
30 |
}
|
31 |
if (eregi("Schedule:",$line)) {
|
32 |
-
$
|
|
|
33 |
}
|
34 |
}
|
35 |
}
|
@@ -60,18 +61,18 @@ class BKPWP_BACKUP_ARCHIVE {
|
|
60 |
<th scope="row"><?php
|
61 |
echo date(get_option('date_format'),filemtime($f['file']))." ".date("H:i",filemtime($f['file']));
|
62 |
?></th>
|
63 |
-
<?php if (!$backup->options->bkpwp_easy_mode()) { ?>
|
64 |
<td>
|
65 |
<?php
|
66 |
echo " <b>".$type."</b>";
|
|
|
|
|
|
|
67 |
?>
|
68 |
</td>
|
|
|
69 |
<td>
|
70 |
<?php
|
71 |
echo " <b>".$info['preset']."</b>";
|
72 |
-
if (!empty($info['runby'])) {
|
73 |
-
echo " - ".$info['runby'];
|
74 |
-
}
|
75 |
?>
|
76 |
</td>
|
77 |
<?php } ?>
|
@@ -86,7 +87,7 @@ class BKPWP_BACKUP_ARCHIVE {
|
|
86 |
?>
|
87 |
</td>
|
88 |
<td style="text-align: center;">
|
89 |
-
<?php if (!
|
90 |
<?php if (!$backup->options->bkpwp_easy_mode()) { ?>
|
91 |
<?php
|
92 |
echo " <a href=\"javascript:void(0)\"
|
@@ -115,7 +116,7 @@ class BKPWP_BACKUP_ARCHIVE {
|
|
115 |
</td>
|
116 |
<?php } ?>
|
117 |
<?php } else { ?>
|
118 |
-
<?php echo "".__("Your Backup is
|
119 |
<?php } ?>
|
120 |
<?php
|
121 |
if ($alternate != "new_row") {
|
@@ -451,7 +452,11 @@ class BKPWP_BACKUP {
|
|
451 |
$log['filename'] = $backup_filename_short;
|
452 |
$log['logfile'] = array();
|
453 |
$log['preset'] = $preset['bkpwp_preset_name'];
|
454 |
-
|
|
|
|
|
|
|
|
|
455 |
$time_start = microtime(true);
|
456 |
|
457 |
// count milliseconds
|
@@ -688,6 +693,9 @@ class BKPWP_BACKUP {
|
|
688 |
if (!empty($log['schedule'])) {
|
689 |
$logfile .= "Schedule: ".$log['schedule']."\n";
|
690 |
}
|
|
|
|
|
|
|
691 |
}
|
692 |
if (is_array($log['logfile'])) {
|
693 |
foreach($log['logfile'] as $l) {
|
29 |
$values['preset'] = $p[1];
|
30 |
}
|
31 |
if (eregi("Schedule:",$line)) {
|
32 |
+
$p=explode(":",$line);
|
33 |
+
$values['runby'] = $p[1];
|
34 |
}
|
35 |
}
|
36 |
}
|
61 |
<th scope="row"><?php
|
62 |
echo date(get_option('date_format'),filemtime($f['file']))." ".date("H:i",filemtime($f['file']));
|
63 |
?></th>
|
|
|
64 |
<td>
|
65 |
<?php
|
66 |
echo " <b>".$type."</b>";
|
67 |
+
if (!empty($info['runby'])) {
|
68 |
+
echo " - ".$info['runby'];
|
69 |
+
}
|
70 |
?>
|
71 |
</td>
|
72 |
+
<?php if (!$backup->options->bkpwp_easy_mode()) { ?>
|
73 |
<td>
|
74 |
<?php
|
75 |
echo " <b>".$info['preset']."</b>";
|
|
|
|
|
|
|
76 |
?>
|
77 |
</td>
|
78 |
<?php } ?>
|
87 |
?>
|
88 |
</td>
|
89 |
<td style="text-align: center;">
|
90 |
+
<?php if (!empty($info['preset'])) { ?>
|
91 |
<?php if (!$backup->options->bkpwp_easy_mode()) { ?>
|
92 |
<?php
|
93 |
echo " <a href=\"javascript:void(0)\"
|
116 |
</td>
|
117 |
<?php } ?>
|
118 |
<?php } else { ?>
|
119 |
+
<?php echo "".__("Your Backup is being processed.","bkpwp").""; ?>
|
120 |
<?php } ?>
|
121 |
<?php
|
122 |
if ($alternate != "new_row") {
|
452 |
$log['filename'] = $backup_filename_short;
|
453 |
$log['logfile'] = array();
|
454 |
$log['preset'] = $preset['bkpwp_preset_name'];
|
455 |
+
if (empty($preset['bkpwp_schedule'])) {
|
456 |
+
$log['schedule'] = __("manually","bkpwp");
|
457 |
+
} else {
|
458 |
+
$log['schedule'] = $preset['bkpwp_schedule'];
|
459 |
+
}
|
460 |
$time_start = microtime(true);
|
461 |
|
462 |
// count milliseconds
|
693 |
if (!empty($log['schedule'])) {
|
694 |
$logfile .= "Schedule: ".$log['schedule']."\n";
|
695 |
}
|
696 |
+
// write some environmental information for debuging purposes
|
697 |
+
$logfile .= "WordPress Version: ".$GLOBALS['wp_version']."\n";
|
698 |
+
$logfile .= "BackUpWordPress Version: ".$GLOBALS['bkpwp_version']."\n";
|
699 |
}
|
700 |
if (is_array($log['logfile'])) {
|
701 |
foreach($log['logfile'] as $l) {
|
bkpwp-pages/bkpwp_manage_backups.php
CHANGED
@@ -396,8 +396,8 @@ if (count($backup_archives) < 1) {
|
|
396 |
<thead>
|
397 |
<tr>
|
398 |
<th scope="col"><?php _e("Date/Time","bkpwp"); ?></th>
|
399 |
-
<?php if (!$backups->options->bkpwp_easy_mode()) { ?>
|
400 |
<th scope="col"><?php _e("Type","bkpwp"); ?></th>
|
|
|
401 |
<th scope="col"><?php _e("Preset","bkpwp"); ?></th>
|
402 |
<?php } ?>
|
403 |
<th scope="col"><?php _e("Size","bkpwp"); ?></th>
|
396 |
<thead>
|
397 |
<tr>
|
398 |
<th scope="col"><?php _e("Date/Time","bkpwp"); ?></th>
|
|
|
399 |
<th scope="col"><?php _e("Type","bkpwp"); ?></th>
|
400 |
+
<?php if (!$backups->options->bkpwp_easy_mode()) { ?>
|
401 |
<th scope="col"><?php _e("Preset","bkpwp"); ?></th>
|
402 |
<?php } ?>
|
403 |
<th scope="col"><?php _e("Size","bkpwp"); ?></th>
|
functions-interface.php
CHANGED
@@ -62,7 +62,9 @@ function bkpwp_sajax_js() {
|
|
62 |
?>
|
63 |
<script>
|
64 |
<?php
|
65 |
-
sajax_show_javascript
|
|
|
|
|
66 |
?>
|
67 |
</script>
|
68 |
<?php
|
62 |
?>
|
63 |
<script>
|
64 |
<?php
|
65 |
+
if (function_exists("sajax_show_javascript")) {
|
66 |
+
sajax_show_javascript();
|
67 |
+
}
|
68 |
?>
|
69 |
</script>
|
70 |
<?php
|