A new version of the backup scripts for WordPress 1.2 Mingus is now available. This has been tested with 1.2 Mingus and the instructions have been updated along with some of the code.
Some of the new and original features are:
- One click backup of the WordPress MySql database which can be then downloaded from your browser without the use of any FTP client.
- One click backup of all the files inside your WordPress folder which can then be downloaded from your browser.
Date coded backup named for sql files and zipped WordPress files. - Better checking of user level. This menu is only available to users with level 10 (or admin) and every backup/restore script has user checking built in to prevent un authorized usage of this tool.
- One click restore of database (if you have a Linux server)
- More streamlined SQL creation resulting in faster backups and cleaner dumps.
Please download the zip file from:
http://weblogtoolscollection.com/b2-img/wpbackup12.zip
After installing per the instructions Backup/Restore fails to appear in the menu.
You need to be logged in as the admin to be able to backup or restore your blog.
Okay, thanks.
Hi, does this work on 1.3-pre-alpha?
Hi, thanks for the effort. I installed precisely as the instructions said and got the following error in the admin screen:
Parse error: parse error, unexpected ‘,’ in /mnt/web_h/d47/s28/b0221019/www/WindhamWogs/wp-admin/menu.php on line 15
My guess is that the instructions for adding the menu item in menu.php are incomplete:
5) Open menu.php in your wp-admin folder and find this line:
array(__(‘Users’), 3, ‘users.php’),
Add this line right after that:
array(__(‘Backup/Restore’), 10, ‘backupRestore.php’),”
There must be more code that must be added to the new line. Here is what it looks like in my menu.php after following your directions:
$menu[25] = array(__(‘Users’), 3, ‘users.php’);
array(__(‘Backup/Restore’), 10, ‘backupRestore.php’),
Please advise, thanks.
Carl
You have a ‘;’ instead of a ‘,’ so replace the semicolon with a comma. The instructions are not incomplete as far as I can tell.
Thanks for the fast reply and assistance. I replaced the comma, which is listed by the way in your instructions (readme.txt), and although my admin menu now loads I get this reponse from WP, which is displayed above the admin menu:
Warning: Division by zero in /mnt/web_h/d47/s28/b0221019/www/WindhamWogs/wp-admin/menu.php on line 15
I am using WP 1.2.1, maybe that makes a difference. My current menu.php code snippet looks like this:
$menu[0] = array(__(‘Dashboard’), 0, ‘index.php’);
$menu[5] = array(__(‘Write’), 1, ‘post.php’);
$menu[10] = array(__(‘Manage’), 1, ‘edit.php’);
$menu[20] = array(__(‘Links’), 5, ‘link-manager.php’);
$menu[25] = array(__(‘Users’), 3, ‘users.php’);
array(__(’Backup/Restore’), 10, ‘backupRestore.php’);
$menu[30] = array(__(‘Options’), 6, ‘options-general.php’);
$menu[35] = array(__(‘Plugins’), 8, ‘plugins.php’);
$menu[40] = array(__(‘Templates’), 4, ‘templates.php’);
$menu[45] = array(__(‘Upload’), get_settings(‘fileupload_minlevel’), ‘upload.php’);
ksort($menu); // So other files can plugin
Carl
$menu[25] = array(__(‘Users’), 3, ‘users.php’);
That actually might be a versioning issue. This hack has been tested on 1.2 (and nothing further) I will have to test and let you know. Sorry for the trouble
Thanks for checking it out. Carl.
Is this compatible with any of the current nightlies – 1.3-alphas?
Are you planning on making a version for 1.3? Please do because it is a lifesaver if something goes wrong.
No Timeline for the 1.3 version yet. Can you confirm that this does not work for 1.3? It should…
I must have had an old download from the WP Wiki, but the instructions for adding the array to menu.php was very wrong. Said “open menu.txt in your wp-admin folder…” and the line to ad said “backupRestore.php Backup/Restore” – no array, no commas, no “10” in the middle, nothing. I finally found the new instructions from here and it totally makes sense and works. Might want to check the wikis and WP-Plugin Manager to make sure the right files and instructions are all in there. The zip I downloaded originally didn’t include a tar.php file either.
It seems to be working but I got a great string of errors, that ends with “success”.
Could not connect to MySQL server!
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/cameraon/public_html/wordpress/wp-admin/backupRestore.php on line 199
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/cameraon/public_html/wordpress/wp-admin/backupRestore.php on line 210
Warning: fopen(/home/cameraon/public_html/wordpress/backup/06012005wordpress.sql): failed to open stream: Permission denied in /home/cameraon/public_html/wordpress/wp-admin/backupRestore.php on line 220
Warning: fwrite(): supplied argument is not a valid stream resource in /home/cameraon/public_html/wordpress/wp-admin/backupRestore.php on line 221
Backup Successful.
Ideas?
And thanks for the brilliant tool!
Triple checked and backup was NOT successful.
It doesn’t seem to work for me: i want to move my db from one server to another. I backup the original db (successfully it says), i copy the file to the backup dir of the other server, I restore it there (successfully) but the posts and comments are not added. What am i missing ?
Did you check the instructions again to make sure that you followed all the steps?
in re: 3) Assign write permissions to the backup folder you just created
Is that chmod 755?
owner: read, write, execute
group: read, execute
world: read, execute
It will be much better than before.
Developing is always better.