Support » Plugins and Hacks » WordPress One Click Backup

  • A lot of people have been looking for an easy way to make daily backups of their WP Mysql database. Rather than re-inventing the wheel, I modified an existing MySql Backup script to work from inside the admin page in WordPress using the WordPress variables. Click on the link below to download the zip file with the installation instructions. It is very simple to install and lets you download the backup files to your local computer as well. I hope someone finds this useful. Please post comments, questions and suggestions.
    Peace.
    http://dinki.mine.nu/word/b2-img/wp_backup.zip

Viewing 15 replies - 1 through 15 (of 46 total)
  • This doesn’t work for me at all, unfortunately. I tried it on 1.0-alpha-2 (renaming appropriate paths/filenames), and also on .72. Either way I get a blank page and no backup when I run the script.

    You get a blank page? no errors? nothing? Can you please email me a link to where your dump.php is located?

    No errors, no nothing. Just plain white…the proverbial blank page. 🙂 I’ve got dump.php in /mydir/wordpress/dump.php. (I’m not sure what link you want…if you went there that’s what you’d see, nothing. 🙂

    Cena, did you make the dump.php file executeable? 🙂 I guess i should have mentioned that. If that is the problem, I will fix that in the tutorials.

    Well, er, I’m not sure what you mean by that. I just uploaded it according to the directions. I did play around with the permissions (going all the way up to 777), but that didn’t change anything either.

    Cena,
    It looks like everything inside the php tags dont get executed. You could try putting something like phpinfo(); just before the comments and see if it gets executed. If there was something wrong with the php code, you would get errors, or something. The source of your dump.php pre-processing shows everything upto the start of the php code. I have an inkling that some comment tag (/*) is not getting ended (*/). It could also be related to your .htaccess . I dont know how hard you want to work with getting this to work, but if you are game, I will help you as much as I can.

    Well, it’s a mystery. phpinfo() generates appropriate page. I don’t have an .htaccess. The code looks fine with syntax highlighting (no unending comments.) I’m willing to do whatever you suggest, but I’m at a loss at the moment.
    How about this…what should the include paths be if I’m using 1.0? (where b2-includes becomes wp-includes.) I’m wondering if I may have messed that up. I currently have this:
    require_once(‘wp-config.php’);
    require_once(“wp-includes/template.functions.php”);
    require_once(“wp-includes/functions.php”);
    require_once(“wp-includes/vars.php”);
    include (“dump/lang_en.inc”);
    Would that be correct?

    That looks perfect. All you really need is the wp-config.php. I have added the others in case people want to configure it to their blog template. You said that it does not work for you in 0.72 either, which is really strange. Does anyone else have this problem? Cena, could you please email me the source of dump.php?
    Thanks for playing along!

    On its way.

    I tried on 0.72 and got nothing at all back, not even a blank page. The server would just hang up :/ Will be a nice hack if it can work tho 🙂

    Sorry, my mistake. Works a treat. Would really like to see it integrated with the admin interface nicely. ie a backup/restore page.
    How exactly does one go about restoring the database?

    OF COURSE there’e interest! 🙂 (in a restore script.)
    Many many props to LL…I emailed him around oh, 1:30 this morning, and he’d responded within *minutes* with the fix. Thanks again, Mark. 🙂

    A backup/restore thingy in Admin? That sounds waaay cool! That is one of the things that kept me from trying out a dynamic package such as WordPress. I’m sure others are very hesitant about this situation, too. To take away that hesitation would be a great feather in WordPress’s cap. I’m all for it!

    I will be working on the restore script as soon as I get my workstation upgrade done. 😛
    I am also thinking of writing another script which backs up the wordpress folder and provides a link for download of the zipped file for local backup.

    yeah something on the line of backups done by the server backends for the WP folder would be so cool!

Viewing 15 replies - 1 through 15 (of 46 total)
  • The topic ‘WordPress One Click Backup’ is closed to new replies.