Changeset 893454
- Timestamp:
- 04/15/2014 08:24:26 AM (12 years ago)
- Location:
- mk-simple-backups
- Files:
-
- 1 added
- 3 edited
- 3 copied
-
assets/banner-772x250.png (added)
-
assets/screenshot-1.png (modified) (previous)
-
tags/0.7 (copied) (copied from mk-simple-backups/trunk)
-
tags/0.7/mk-simple-backups.php (copied) (copied from mk-simple-backups/trunk/mk-simple-backups.php) (9 diffs)
-
tags/0.7/readme.txt (copied) (copied from mk-simple-backups/trunk/readme.txt) (4 diffs)
-
trunk/mk-simple-backups.php (modified) (9 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mk-simple-backups/tags/0.7/mk-simple-backups.php
r893007 r893454 5 5 * Plugin URI: http://wordpress.org/plugins/mk-simple-backups/ 6 6 * Description: Allows you to create simple backups on a dedicated page nested in the "Tools" Menu. 7 * Version: 0. 6.27 * Version: 0.7 8 8 * Author: Michael Kühni 9 9 * Author URI: http://michaelkuehni.ch … … 14 14 // backend only 15 15 if(is_admin()) { 16 17 16 18 17 … … 52 51 add_action( 'init', 'mk_simple_backups_load_textdomain' ); 53 52 54 53 // set option 54 update_option( $settings_var_name, $settings ); 55 55 56 56 … … 62 62 global $wpdb; 63 63 64 64 65 66 65 67 $msg = array(); 66 68 $this_plugin_data = get_plugin_data( __FILE__); … … 99 101 $bkp_single_files_with_path = array(); 100 102 $bkp_single_files = array(); 103 $new_settings = array( "db"=>false, "theme"=>false, "upload"=>false, "upload_type"=>"db" ); 101 104 102 105 … … 108 111 $s = $bkp->createDBBackup(); 109 112 $desc = __("Database", "mk-simple-backups"); 113 $new_settings["db"] = true; 110 114 break; 111 115 case "theme": 112 116 $s = $bkp->createThemeBackup(); 113 117 $desc = __("Theme", "mk-simple-backups"); 118 $new_settings["theme"] = true; 114 119 break; 115 120 case "uploads": 121 $new_settings["upload"] = true; 116 122 if($_POST["upload_options"] == "file") { 117 123 $s = $bkp->createUploadBackup(); 118 124 $desc = __("Uploads (file based)", "mk-simple-backups"); 125 $new_settings["upload_type"] = "file"; 119 126 } 120 127 else { 121 128 $s = $bkp->createUploadBackupByDB(); 122 129 $desc = __("Uploads (db based)", "mk-simple-backups"); 130 $new_settings["upload_type"] = "db"; 123 131 } 124 132 break; … … 155 163 break; 156 164 } 165 166 // save settings 167 $settings_var_name = "mk-simple-backups-settings"; 168 if(isset($new_settings)) update_option( $settings_var_name, serialize($new_settings)); 169 170 // get settings 171 $settings_s = get_option($settings_var_name); 172 if($settings_s == false) { 173 // default settings 174 $settings = array( "db" => true, "upload" => true, "theme" => true, "upload_type" => "db"); 175 } else $settings = unserialize($settings_s); 176 177 157 178 158 179 // echo msg's … … 238 259 <form action="<? bloginfo("siteurl"); ?>/wp-admin/tools.php?page=mk-simple-backups&action=createBackup" method="post"> 239 260 <ul class="options"> 240 <li class="theme"><label><input type="checkbox" name="options[]" value="theme" checked="checked"><strong><?=wp_get_theme();?></strong>, <? _e('Active Theme', 'mk-simple-backups'); ?></label></li>241 <li class="db"><label><input type="checkbox" name="options[]" value="db" checked="checked"><strong><? _e('SQL-Dump', 'mk-simple-backups'); ?></strong>, <? _e('Database', 'mk-simple-backups'); ?></label></li>242 <li class="uploads"><label><input type="checkbox" name="options[]" value="uploads" checked="checked"><strong>/uploads</strong>, Uploads</label>261 <li class="theme"><label><input type="checkbox" name="options[]" value="theme" <? if($settings["theme"] == true) echo 'checked="checked"'; ?>><strong><?=wp_get_theme();?></strong>, <? _e('Active Theme', 'mk-simple-backups'); ?></label></li> 262 <li class="db"><label><input type="checkbox" name="options[]" value="db" <? if($settings["db"] == true) echo 'checked="checked"'; ?>><strong><? _e('SQL-Dump', 'mk-simple-backups'); ?></strong>, <? _e('Database', 'mk-simple-backups'); ?></label></li> 263 <li class="uploads"><label><input type="checkbox" name="options[]" value="uploads" <? if($settings["upload"] == true) echo 'checked="checked"'; ?>><strong>/uploads</strong>, Uploads</label> 243 264 <select name="upload_options"> 244 <option value="file" ><? printf( __('All files within %s', 'mk-simple-backups'), $bkp->upload_dir["baseurl"]); ?></option>245 <option value="db" selected="selected"><? _e('Attachments from DB (post_type: attachment)', 'mk-simple-backups'); ?></option>265 <option value="file" <? if($settings["upload_type"] == "file") echo 'selected="selected"'; ?>><? printf( __('All files within %s', 'mk-simple-backups'), $bkp->upload_dir["baseurl"]); ?></option> 266 <option value="db" <? if($settings["upload_type"] == "db") echo 'selected="selected"'; ?>><? _e('Attachments from DB (post_type: attachment)', 'mk-simple-backups'); ?></option> 246 267 </select></li> 247 268 … … 296 317 global $bkp; 297 318 319 // delete option 320 delete_option("mk-simple-backups-settings"); 321 298 322 // attempt to flush backup directory 299 323 $bkp->flushBackupDir(); -
mk-simple-backups/tags/0.7/readme.txt
r893007 r893454 3 3 Tags: backup, db, uploads 4 4 Requires at least: 3.8 5 Stable tag: 0. 6.25 Stable tag: 0.7 6 6 Tested up to: 3.9RC1 7 7 License: GPLv2 or later … … 20 20 Backups will be stored within a folder in wp-content and be downloadable from the Backend. Once the downloads are finished, the backup files on the Server can be flushed. 21 21 22 Plugin Author does not take any responsibility for the safety of your data or the integrity of the generated backups. 22 What's good: 23 * Simple: Choose what is included in your Backup and download the resulting ZIP Archive from your Backend 24 * Unotrusive: Nested within the "Tools" Submenu and comes without any bling bling, following WP Backend Styles 25 * Lightweight: 28KB zipped, 72KB unzipped 26 27 The plugin author does not take any responsibility for the safety of your data or the integrity of the generated backups. 23 28 24 29 == Installation == … … 40 45 It is not advised for two reasons: first) when your Hosting/Server breaks, a server-side backup might go down with it and second) the sql-dump contains usernames for your wordpress installation, it MUST NOT be permanently stored on the server 41 46 47 = Should I not backup the Plugins? = 48 Plugins are a vital part of many Wordpress Installations, which makes them prime candidates for a backup. However, there are a couple of reasons not to include them: a) They outdate quickly, making a backed up Version easily obsolete, b) Plugins can get quite large and in quantity would slow down Backups considerably, c) They must not include custom code and therefore can easily be re-downloaded in current or older Versions from the repository. If a plugin uses and stores custom data, chances are, that this data sits within the DB, which will be included in the SQL Dump. 49 50 = Why is there no way to schedule Backups? = 51 This Plugin was designed around the idea of having a simple tool to create small Backups before updating Wordpress. Scheduled and automatic Backups are currently not about to be added. If you're looking for something like that, I would suggest UpdraftPlus or BackWPup. 52 53 = Why is the Version Number only 0.x = 54 It's only a number. Minor updates and Bugfixes will increase the 0.0.x counter, where bigger updates will increase 0.x 55 42 56 == Screenshots == 43 57 … … 45 59 46 60 == Changelog == 61 62 = 0.7 = 63 * Plugin now saves the form-state when creating a Backup 64 * Plugin option will be removed when deactivating the Plugin 65 * Added Plugin Repository Banner (Armadillo!) 66 * Updated Screenshot 67 * Updated Read-me 47 68 48 69 = 0.6.2 = -
mk-simple-backups/trunk/mk-simple-backups.php
r893007 r893454 5 5 * Plugin URI: http://wordpress.org/plugins/mk-simple-backups/ 6 6 * Description: Allows you to create simple backups on a dedicated page nested in the "Tools" Menu. 7 * Version: 0. 6.27 * Version: 0.7 8 8 * Author: Michael Kühni 9 9 * Author URI: http://michaelkuehni.ch … … 14 14 // backend only 15 15 if(is_admin()) { 16 17 16 18 17 … … 52 51 add_action( 'init', 'mk_simple_backups_load_textdomain' ); 53 52 54 53 // set option 54 update_option( $settings_var_name, $settings ); 55 55 56 56 … … 62 62 global $wpdb; 63 63 64 64 65 66 65 67 $msg = array(); 66 68 $this_plugin_data = get_plugin_data( __FILE__); … … 99 101 $bkp_single_files_with_path = array(); 100 102 $bkp_single_files = array(); 103 $new_settings = array( "db"=>false, "theme"=>false, "upload"=>false, "upload_type"=>"db" ); 101 104 102 105 … … 108 111 $s = $bkp->createDBBackup(); 109 112 $desc = __("Database", "mk-simple-backups"); 113 $new_settings["db"] = true; 110 114 break; 111 115 case "theme": 112 116 $s = $bkp->createThemeBackup(); 113 117 $desc = __("Theme", "mk-simple-backups"); 118 $new_settings["theme"] = true; 114 119 break; 115 120 case "uploads": 121 $new_settings["upload"] = true; 116 122 if($_POST["upload_options"] == "file") { 117 123 $s = $bkp->createUploadBackup(); 118 124 $desc = __("Uploads (file based)", "mk-simple-backups"); 125 $new_settings["upload_type"] = "file"; 119 126 } 120 127 else { 121 128 $s = $bkp->createUploadBackupByDB(); 122 129 $desc = __("Uploads (db based)", "mk-simple-backups"); 130 $new_settings["upload_type"] = "db"; 123 131 } 124 132 break; … … 155 163 break; 156 164 } 165 166 // save settings 167 $settings_var_name = "mk-simple-backups-settings"; 168 if(isset($new_settings)) update_option( $settings_var_name, serialize($new_settings)); 169 170 // get settings 171 $settings_s = get_option($settings_var_name); 172 if($settings_s == false) { 173 // default settings 174 $settings = array( "db" => true, "upload" => true, "theme" => true, "upload_type" => "db"); 175 } else $settings = unserialize($settings_s); 176 177 157 178 158 179 // echo msg's … … 238 259 <form action="<? bloginfo("siteurl"); ?>/wp-admin/tools.php?page=mk-simple-backups&action=createBackup" method="post"> 239 260 <ul class="options"> 240 <li class="theme"><label><input type="checkbox" name="options[]" value="theme" checked="checked"><strong><?=wp_get_theme();?></strong>, <? _e('Active Theme', 'mk-simple-backups'); ?></label></li>241 <li class="db"><label><input type="checkbox" name="options[]" value="db" checked="checked"><strong><? _e('SQL-Dump', 'mk-simple-backups'); ?></strong>, <? _e('Database', 'mk-simple-backups'); ?></label></li>242 <li class="uploads"><label><input type="checkbox" name="options[]" value="uploads" checked="checked"><strong>/uploads</strong>, Uploads</label>261 <li class="theme"><label><input type="checkbox" name="options[]" value="theme" <? if($settings["theme"] == true) echo 'checked="checked"'; ?>><strong><?=wp_get_theme();?></strong>, <? _e('Active Theme', 'mk-simple-backups'); ?></label></li> 262 <li class="db"><label><input type="checkbox" name="options[]" value="db" <? if($settings["db"] == true) echo 'checked="checked"'; ?>><strong><? _e('SQL-Dump', 'mk-simple-backups'); ?></strong>, <? _e('Database', 'mk-simple-backups'); ?></label></li> 263 <li class="uploads"><label><input type="checkbox" name="options[]" value="uploads" <? if($settings["upload"] == true) echo 'checked="checked"'; ?>><strong>/uploads</strong>, Uploads</label> 243 264 <select name="upload_options"> 244 <option value="file" ><? printf( __('All files within %s', 'mk-simple-backups'), $bkp->upload_dir["baseurl"]); ?></option>245 <option value="db" selected="selected"><? _e('Attachments from DB (post_type: attachment)', 'mk-simple-backups'); ?></option>265 <option value="file" <? if($settings["upload_type"] == "file") echo 'selected="selected"'; ?>><? printf( __('All files within %s', 'mk-simple-backups'), $bkp->upload_dir["baseurl"]); ?></option> 266 <option value="db" <? if($settings["upload_type"] == "db") echo 'selected="selected"'; ?>><? _e('Attachments from DB (post_type: attachment)', 'mk-simple-backups'); ?></option> 246 267 </select></li> 247 268 … … 296 317 global $bkp; 297 318 319 // delete option 320 delete_option("mk-simple-backups-settings"); 321 298 322 // attempt to flush backup directory 299 323 $bkp->flushBackupDir(); -
mk-simple-backups/trunk/readme.txt
r893007 r893454 3 3 Tags: backup, db, uploads 4 4 Requires at least: 3.8 5 Stable tag: 0. 6.25 Stable tag: 0.7 6 6 Tested up to: 3.9RC1 7 7 License: GPLv2 or later … … 20 20 Backups will be stored within a folder in wp-content and be downloadable from the Backend. Once the downloads are finished, the backup files on the Server can be flushed. 21 21 22 Plugin Author does not take any responsibility for the safety of your data or the integrity of the generated backups. 22 What's good: 23 * Simple: Choose what is included in your Backup and download the resulting ZIP Archive from your Backend 24 * Unotrusive: Nested within the "Tools" Submenu and comes without any bling bling, following WP Backend Styles 25 * Lightweight: 28KB zipped, 72KB unzipped 26 27 The plugin author does not take any responsibility for the safety of your data or the integrity of the generated backups. 23 28 24 29 == Installation == … … 40 45 It is not advised for two reasons: first) when your Hosting/Server breaks, a server-side backup might go down with it and second) the sql-dump contains usernames for your wordpress installation, it MUST NOT be permanently stored on the server 41 46 47 = Should I not backup the Plugins? = 48 Plugins are a vital part of many Wordpress Installations, which makes them prime candidates for a backup. However, there are a couple of reasons not to include them: a) They outdate quickly, making a backed up Version easily obsolete, b) Plugins can get quite large and in quantity would slow down Backups considerably, c) They must not include custom code and therefore can easily be re-downloaded in current or older Versions from the repository. If a plugin uses and stores custom data, chances are, that this data sits within the DB, which will be included in the SQL Dump. 49 50 = Why is there no way to schedule Backups? = 51 This Plugin was designed around the idea of having a simple tool to create small Backups before updating Wordpress. Scheduled and automatic Backups are currently not about to be added. If you're looking for something like that, I would suggest UpdraftPlus or BackWPup. 52 53 = Why is the Version Number only 0.x = 54 It's only a number. Minor updates and Bugfixes will increase the 0.0.x counter, where bigger updates will increase 0.x 55 42 56 == Screenshots == 43 57 … … 45 59 46 60 == Changelog == 61 62 = 0.7 = 63 * Plugin now saves the form-state when creating a Backup 64 * Plugin option will be removed when deactivating the Plugin 65 * Added Plugin Repository Banner (Armadillo!) 66 * Updated Screenshot 67 * Updated Read-me 47 68 48 69 = 0.6.2 =
Note: See TracChangeset
for help on using the changeset viewer.