post-page

WordPress 1.2 One Click Backup

31
responses
by
 
on
June 20th, 2004
in
Cool Scripts, WordPress Hack

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

heading
heading
31
Responses

 

Comments

  1. jcwinnie says:

    After installing per the instructions Backup/Restore fails to appear in the menu.

  2. Mark says:

    You need to be logged in as the admin to be able to backup or restore your blog.

  3. jcwinnie says:

    Okay, thanks.

  4. Le Idler says:

    Hi, does this work on 1.3-pre-alpha?

  5. Carl Lynder says:

    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

  6. Mark says:

    You have a ‘;’ instead of a ‘,’ so replace the semicolon with a comma. The instructions are not incomplete as far as I can tell.

  7. Carl Lynder says:

    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’);

  8. Mark says:

    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

  9. Carl Lynder says:

    Thanks for checking it out. Carl.

  10. Rob Mientjes says:

    Is this compatible with any of the current nightlies – 1.3-alphas?

  11. Josh says:

    Are you planning on making a version for 1.3? Please do because it is a lifesaver if something goes wrong.

  12. Mark says:

    No Timeline for the 1.3 version yet. Can you confirm that this does not work for 1.3? It should…

  13. 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!

  14. Triple checked and backup was NOT successful.

  15. achilleas says:

    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 ?

  16. Mark says:

    Did you check the instructions again to make sure that you followed all the steps?

  17. llizard says:

    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

  18. Joshua says:

    It will be much better than before.
    Developing is always better.



Trackbacks/Pingbacks

  1. […] tants ainsi que la base de données de votre blog (turbiné par WordPress) en passant par un […]

  2. […] sides – Type of linklog Installing WordPress on Mac OS X 10.3 Lots of WordPress-Plugins WordPress One Click Backup – A must have. GMail Invitation – […]

  3. […] s路径,可以直接写 @import url( wp-layout.css ); 。 数据库的备份建议使用One click backup,这个软件生成的sql文件可以直接 […]

  4. […] my spare time this weekend, I did some WordPress tweaking and discovered some cool tools: One-Click-Backup – Perfect for backing up your WP source file […]

  5. […] my spare time this weekend, I did some WordPress tweaking and discovered some cool tools: One-Click-Backup – Perfect for backing up your WP source file […]

  6. […] use of a glitch in the system. If you are interested, you can find the Backup/Restore tool here. This entry was posted […]

  7. […] (fingers crossed) much better host. And I’d like to tip my hat to the creator of the WordPress One Click Backup. Devastatingly easy to use and it […]

  8. WP 1.2 One Click Backup
    Only one. Nice. Yes, one.

  9. typedby.com says:

    One Click Backup/Restore for WP 1.2
    This is an awesome script that allows you to add a Backup/Restore button to your WP administration panel. At the click of a button, you may backup/restore your WP mySQL database files.

  10. Backup/Restore Capable
    I’ve just installed the backup/restore plugin. I’ve decided that I no longer want to deal with rebuilding everything because of a glitch in the system. If you are interested, you can find the Backup/Restore tool here.

  11. […] of categories and moving the posts within them to new categories.
    WordPress Database One Click Bac […]

  12. […] of categories and moving the posts within them to new categories. WordPress Database One Click Bac […]

  13. […] ss 1.2 One Click Backup
    Filed under: WordPress — site admin @ 9:17 pm

    http://weblogtoolscollection.c.....rdpress-12 […]

Obviously Powered by WordPress. © 2003-2013

css.php