1 === WP-DB-Backup === |
1 === WP-DB-Backup === |
2 Contributors: filosofo |
2 Contributors: filosofo |
3 Donate link: http://austinmatzko.com/wordpress-plugins/wp-db-backup/ |
3 Donate link: http://austinmatzko.com/wordpress-plugins/wp-db-backup/ |
4 Tags: mysql, database, backup, cron |
4 Tags: mysql, database, backup, cron |
5 Requires at least: 2.0.3 |
5 Requires at least: 3.6.0 |
6 Tested up to: 3.6.1 |
6 Tested up to: 4.9.2 |
7 Stable tag: 2.2.4 |
7 Stable tag: 2.3.3 |
8 |
8 |
9 On-demand backup of your WordPress database. |
9 On-demand backup of your WordPress database. |
10 |
10 |
11 == Description == |
11 == Description == |
12 |
12 |
15 Released under the terms of the GNU GPL, version 2. |
15 Released under the terms of the GNU GPL, version 2. |
16 http://www.fsf.org/licensing/licenses/gpl.html |
16 http://www.fsf.org/licensing/licenses/gpl.html |
17 |
17 |
18 NO WARRANTY. |
18 NO WARRANTY. |
19 |
19 |
20 Copyright (c) 2013 Austin Matzko |
20 Copyright (c) 2018 Austin Matzko |
|
21 |
|
22 [Source Code on GitHub](https://github.com/matzko/wp-db-backup) |
21 |
23 |
22 == Installation == |
24 == Installation == |
23 1. Extract the wp-db-backup/ folder file to /wp-content/plugins/ |
25 1. Extract the wp-db-backup/ folder file to /wp-content/plugins/ |
24 1. Activate the plugin at your blog's Admin -> Plugins screen |
26 1. Activate the plugin at your blog's Admin -> Plugins screen |
25 1. The plugin will attempt to create a directory /wp-content/backup-*/ inside your WordPress directory. |
27 1. The plugin will attempt to create a directory /wp-content/backup-*/ inside your WordPress directory. |
26 1. You may need to make /wp-content writable (at least temporarily) for it to create this directory. |
28 1. You may need to make /wp-content writable (at least temporarily) for it to create this directory. |
27 For example: |
29 For example: |
28 `$ cd /wordpress/` |
30 `$ cd /wordpress/` |
29 `$ chgrp www-data wp-content` (where "`www-data`" is the group your FTP client uses) |
31 `$ chgrp www-data wp-content` (where "`www-data`" is the group your FTP client uses) |
30 `$ chmod g+w wp-content` |
32 `$ chmod g+w wp-content` |
31 |
33 |
32 == Frequently Asked Questions == |
34 == Frequently Asked Questions == |
33 |
35 |
34 = How do I restore my database from a backup? = |
36 = How do I restore my database from a backup? = |
35 |
37 |
36 Briefly, use phpMyAdmin, which is included with most hosting control panels. More details and links to further explanations are [here](http://codex.wordpress.org/Restoring_Your_Database_From_Backup). |
38 Briefly, use phpMyAdmin, which is included with most hosting control panels. More details and links to further explanations are [here](http://codex.wordpress.org/Restoring_Your_Database_From_Backup). |
37 |
|
38 = Why can't I schedule automatic backups to be saved to my server? = |
|
39 |
|
40 Although WP-DB-Backup provides the option of saving the backup file to the server, I strongly discourage anyone from leaving backed-up database files on the server. If the server is not perfectly configured, then someone could gain access to your data, and I do not want to make it easy for that to happen. |
|
41 |
39 |
42 = My backup stops or hangs without completing. = |
40 = My backup stops or hangs without completing. = |
43 |
41 |
44 If you edit the text of wp-db-backup.php in a text editor like Notepad, you’ll see around line 50 the following: |
42 If you edit the text of wp-db-backup.php in a text editor like Notepad, you’ll see around line 50 the following: |
45 |
43 |
77 ** NOTE ** |
75 ** NOTE ** |
78 Including other tables in your backup may substantially increase the size of the backup file! |
76 Including other tables in your backup may substantially increase the size of the backup file! |
79 This may prevent you from emailing the backup file because it's too big. |
77 This may prevent you from emailing the backup file because it's too big. |
80 |
78 |
81 1. Select how you'd like the backup to be delivered: |
79 1. Select how you'd like the backup to be delivered: |
82 * Save to server : this will create a file in /wp-content/backup-*/ for you to retreive later |
|
83 * Download to your computer : this will send the backup file to your browser to be downloaded |
80 * Download to your computer : this will send the backup file to your browser to be downloaded |
84 * Email : this will email the backup file to the address you specify |
81 * Email : this will email the backup file to the address you specify |
85 |
82 |
86 1. Click "Backup!" and your database backup will be delivered to you. |
83 1. Click "Backup!" and your database backup will be delivered to you. |
87 |
84 |
88 The filename of the backup file will be of the form |
85 The filename of the backup file will be of the form |
89 DB_prefix_date.sql |
86 DB_prefix_date.sql |
90 DB = the name of your WordPress database, as defined in wp-config.php |
87 DB = the name of your WordPress database, as defined in wp-config.php |
91 prefix = the table prefix for this WordPress blog, as defined in wp-config.php |
88 prefix = the table prefix for this WordPress blog, as defined in wp-config.php |
92 date = CCYYmmdd_B format: 20050711_039 |
89 date = CCYYmmdd_B format: 20050711_039 |
93 the "B" is the internet "Swatch" time. |
90 the "B" is the internet "Swatch" time. |
94 See the PHP date() function for details. |
91 See the PHP date() function for details. |
95 |
92 |
96 When having the database backup emailed or sent to your browser for immediate download, the backup file will be _deleted_ from the server when the transfer is finished. Only if you select delivery method "Save to server" will the backup file remain on your server. |
93 When having the database backup emailed or sent to your browser for immediate download, the backup file will be _deleted_ from the server when the transfer is finished. |
97 |
|
98 *** SECURITY WARNING *** |
|
99 Your database backup contains sensitive information, |
|
100 and should not be left on the server for any extended |
|
101 period of time. The "Save to server" delivery method is provided |
|
102 as a convenience only. I will not accept any responsibility |
|
103 if other people obtain your backup file. |
|
104 *** SECURITY WARNING *** |
|
105 |
94 |
106 == Changelog == |
95 == Changelog == |
107 |
96 |
108 = 2.2.3 = |
97 = 2.3.0 = |
|
98 * Remove backup directory use |
|
99 |
|
100 = 2.2.4 = |
|
101 * Remove deprecated functionality |
|
102 * Do not attempt to delete non-existent files |
|
103 |
|
104 = 2.2.3 = |
109 * Nonce check fix for localized WP users from Sergey Biryukov |
105 * Nonce check fix for localized WP users from Sergey Biryukov |
110 * Fix for gzipped files' incorrect size. |
106 * Fix for gzipped files' incorrect size. |
111 * Some styling improvements. |
107 * Some styling improvements. |
112 * Fix for JS multiple checkbox selection. |
108 * Fix for JS multiple checkbox selection. |
113 |
109 |
115 |
111 |
116 = 2.2.3 = |
112 = 2.2.3 = |
117 * Fixes problems users had when using localized WordPress installations. |
113 * Fixes problems users had when using localized WordPress installations. |
118 * Fixes a bug that caused the size of gzipped backup files to be reported incorrectly. |
114 * Fixes a bug that caused the size of gzipped backup files to be reported incorrectly. |
119 |
115 |
|
116 = 2.3.3 = |
|
117 * Sanitize user-supplied data |
|
118 |
120 == Advanced == |
119 == Advanced == |
121 If you are using WordPress version 2.1 or newer, you can schedule automated backups to be sent to the email address |
120 If you are using WordPress version 2.1 or newer, you can schedule automated backups to be sent to the email address |
122 of your choice. |
121 of your choice. |
123 |
122 |
124 == Translators == |
123 == Translators == |
125 Thanks to following people for providing translation files for WP-DB-Backup: |
124 Thanks to following people for providing translation files for WP-DB-Backup: |
126 * Abel Cheung |
125 * Abel Cheung |