WP-DB Backup 1.5

wp-db-backup-1.5.zip

This version of WP-DB Backup should be better for everyone. The foreach warnings if you have no data should be gone -- if they're not, please let me know.

This version also better handles large databases. The database backup is spooled, 10 rows at a time, to the server's hard disk. If the final backup file is greater than 2 megabytes in size, gzip compress will not be used, even if you ask for it. A friendly message will inform you that the database was too big to gzip, and that the file remains uncompressed.

Finally, this version should fully support internationalization. If you translate the included wp-db-backup.pot file, please send it to me so that I can make it make it available to others!

Many thanks to Owen, Lorelle, and Stefano for their contributions!


28 Responses to WP-DB Backup 1.5

  1. 1157 Trae 2005-07-20 12:58:21

    I'm having better luck with version 1.4, but...

    Something you might consider, is a way to let it be run by a real Cron job. If you already have this setup let me know.

  2. 1178 WP Backup Week « MtDewVirus 2005-07-22 11:52:58

    [...] WordPress Backup Week starts tomorrow. I highly recommend WP-DB Backup with WP-Cron. function openSpellChecker() { // get the textarea we're going to check var txt = document.getElementById('comment'); // give the spellChecker object a reference to our textarea // pass any number of text objects as arguments to the constructor: var speller = new spellChecker( txt,"http://mtdewvirus.com" ); // kick it off speller.openChecker(); } [...]

  3. 1185 lâmpada azul [jcraveiro.com] » WordPress Backup Week 2005-07-22 14:07:33

    [...] Na notícia encontram-se links para artigos (1, 2) criados para o efeito, onde são explicados os procedimentos para backup com vários front-ends de base de dados (phpMyAdmin, et al) e também com o plugin WP-DB Backup. [...]

  4. 1183 Big Dog 2005-07-23 04:45:39

    This is a great plug in. I have 1.4. Is there anything special I need to do to install 1.5? I tried replacing the file but I get an error message.
    Thanks,
    BD

  5. 1166 Jack 2005-07-23 20:03:27

    The plugin works ok, but I receive the following warnings on top of my adminpages when I click the backup button:

    Warning: Invalid argument supplied for foreach() in /srv/jackdaw/www/www.spoenk.nl/wordpress/wp-content/plugins/wp-db-backup.php on line 177

    Warning: Cannot modify header information - headers already sent by (output started at /srv/jackdaw/www/www.spoenk.nl/wordpress/wp-content/plugins/wp-db-backup.php:177) in /srv/jackdaw/www/www.spoenk.nl/wordpress/wp-admin/admin.php on line 10

    etc. etc. for line 11 - 13

    Any idea what can be causing this?

    I'm using version 1.5.1 of wordpress and the latest version of this plugin.

  6. 1182 Footsteps in the Mirror » Restoring Backups: Still Easier Than Xiaxue 2005-07-24 07:31:25

    [...] For Wordpress users, the best backup plugin you can have is Skippy's WP-DB Backup. Why? Because you can choose the optional databases to backup. You'll understand at point 4. [...]

  7. 1177 Not Bruce Lee » Blog Archive » Great Blog Deletion of 2005 2005-07-25 06:06:52

    [...] So what have we learned boys and girls….ALWAYS ALWAYS ALWAYS make a backup of your data. It’s sad. My computer science professors would beat my head in, if they knew I lost my site because I didn’t back it up. I mean not only was computer science my major in college but I also worked in IT. I am constantly telling people that phrase “ALWAYS BACKUP YOUR DATA!”. I have learned my lesson the hard way. The first thing I did when I got WordPress back up was to install the “Word Press Backup Plugin” by Scott Merrill. The plugin backups your SQL database then emails it to you. This will *knock on wood* not happen to me again. I’m going to start regularly backup up my website semi-monthly to guarantee nothing bad happens… [...]

  8. 1164 bueltge.de » Blog Archive » Datenbank sichern 2005-07-25 11:41:35

    [...] Anlässlich der “WordPress Backup Woche” habe ich mich mal nach einem Plugin umgesehen, mit dem man recht einfach ein schnelles Backup der Datenbank machen kann. Dabei bin ich auf folgendes Plugin WP-DB-Backup von Scott Merrill gestoßen. Leider liegt das Plugin nur in Englisch vor, so dass ich mal die Sprachdatei übersetzt habe. Nun ist das Gesamtbild einer deutschen WordPress-Oberfläche doch etwas schöner, auch wenn das Englisch recht einfach ist. wp-db-backup-de_DE.po wp-db-backup-de_DE.mo [...]

  9. 1202 D'Arcy Norman 2005-07-25 20:31:51

    Love the plugin. It's the only way I can automate my MySQL backups for my blog since moving to GoDaddy. Excellent work.

    When I set it to automatically backup and email the database, is there a way to have it include all tables, rather than just the core wp_ tables? I can do that manually, but it doesn't seem to "stick" for the automated backups...

  10. 1209 André 2005-07-26 07:45:40

    I got the same errormsg. as Jack.

  11. 1211 Frank 2005-07-26 12:23:01

    German Language File for DB-Backup, very nice Plugin:
    http://www.bueltge.de/datenbank-sichern/9/

    http://www.bueltge.de/wp-content/plugins/wp-db-backup-de_DE.po
    http://www.bueltge.de/wp-content/plugins/wp-db-backup-de_DE.mo

  12. 1215 skippy 2005-07-27 00:05:01

    D’Arcy Norman: I'm not going to provide automated backup of non-core tables, and I say exactly why in the wp-db-backup.txt file. The core tables should almost always be able to be backed up, but plugins and other tables can vary wildly in size, and as such might break the backups. For every person helped with automatic backup of all table, someone else will send me an email saying that their backups never work because they're trying to include some stats table in their backups.

    Jack and André: the "headers already sent" message is a spill-over error from the real problem: the foreach command fails because one of your tables doesn't contain any data. So far, this has almost always been caused because there were no comments.

  13. 1198 Rauru Blog » Blog Archive » WPJ Codex 2005-07-27 06:16:00

    [...] 英語版Codexページの方には skippy の DB Backup Plugin の話も載ってるので、これも訳した方がいいかな。 [...]

  14. 1217 André 2005-07-27 12:29:36

    I get that error when i try to include any other table in the backup. And i have chedked that they are not empty.

    I don't get any errors when i only backup the core tables.

  15. 1218 jack 2005-07-27 12:36:31

    Hello Skippy,

    That must be it. I'm not using comments on my site.
    Does it 'hurt' my backups?

    I'm using your plugin now, together with wpcron. I haven't tested the backup yet, but with wpcron it works fantastic. Everyday I get the backup delivered in my postbox. How convenient! And safe! I just have to remember to save those attachments :D.

    Thanks!

    Jac

  16. 1219 Nick 2005-07-27 13:22:46

    Jack,
    This is a great use for a Gmail account. ;-)

  17. 1220 xchylde speakin but mostly writing » Blog Archive » Ein Jahr lang X 2005-07-27 20:08:15

    [...] Zum Geburtstag gab es aber dann doch noch ein neues Theme (Danke an 252523 (wtf?)) und ein neues Plugin, damit euch das xblog noch ein wenig weiter nerven kann. Momentan beschäftigt mich die Anpassung des Themes bezüglich der statischen Wortwahl und so. Wer richtig viel Zeit hat und ein ganz großer CSS-Junkie ist, darf sich gerne melden - ich hab da ein paar herrliche Ideen für das Layout, die meiner Meinung nach auch mehr oder weniger innovativ sind - jedenfalls hab ich bis jetzt nirgends ein Blog mit einem solchen mir vorschwebenden Layout gesehen. [...]

  18. 1227 ck 2005-08-02 15:47:16

    Hi Skippy,

    I am trying to use your plug-in and get this message:WARNING: Your backup directory is NOT writable!
    /home/content/c/h/e/cherylkemp/html/blog/wp-content/backup/

    Before I do anything stupid, I just want to make sure this is no big deal. It sounds as if I download it to my computer or email it that everything should be fine? Currently have godaddy hosting and I would like to get this backed up properly before I make the switch.

    Thanks!

  19. 1239 skippy 2005-08-02 16:07:58

    ck: http://wordpress.org/support/topic/39017#post-229609

    As long as your database is comparatively small (under, say, 2 megs) you should be okay. Version 1.5 of wp-db-backup keeps the whole backup in memory.

    A new version (due very very soon) will spool the backup table by table to a file in the /wp-content/backup directory. This file will be deleted after it is mailed to you.

    It's probably best to grant write permission to your backup directory now, so that you're ready for the new version.

  20. 1241 D’Arcy’s Edublogs.org Site » Blog Archive » WP-DB-Backup plugin? 2005-08-03 00:28:35

    [...] Not sure if it’s compatible with WPMU, but WP-DB-Backup might be a nice touch - gives the users a chance to back their stuff up, as well as the option to easily move to their own host if they outgrow this one. [...]

  21. 1242 kaufman 2005-08-03 04:24:34

    Hi Skippy,
    thanks for all of your hard work on this. I just installed 1.5, and I'm getting a ton of these type of errors:

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/terrik/www/www/wordpress/wp-content/plugins/wp-db-backup.php on line 122

    I'd finally gotten the directory permissions set right, as I DID get rid of one error at the beginning (regarding fopen), but the rest are still coming up. Down further in the list of errors are a couple regarding invalid SQL. According to my host, they run MySQL 4.0.25 and PHP 4.3.11 .

    Do you think that it's at all possible that this is a MySQL and/or PHP version error?

    thanks!

    kaufman

  22. 1265 Victor Bracco 2005-08-04 10:55:41

    Hi Skippy.
    Look at please:

    Warning: Missing argument 3 for wp_db_backup() in ...wp-content/plugins/wp-db-backup.php on line 200

    Warning: Invalid argument supplied for foreach() in ...wp-content/plugins/wp-db-backup.php on line 177

    Warning: Invalid argument supplied for foreach() in ...wp-content/plugins/wp-db-backup.php on line 177

    All warning at the same time, at the first time I'm in the site. If I reload the web, the warning disapear.

  23. 1267 kaufman 2005-08-04 13:14:34

    I figured out part of my problem - I only get the errors when I try to include any non-core tables. Setting this up with WP-Cron was actually a breeze, and works great - Just wish that I could get the non-core tables to backup manually.

    thanks!

    kaufman

  24. 1294 Yiming & Fangwen Blog » Blog Archive » Wordpress Backup 2005-08-05 03:08:47

    [...] The first I use the plugin DataBase Backup and also I install the cron plugin [...]

  25. 1308 Blogmania Business Blog » Blogmania ff uit de lucht 2005-08-08 13:12:18

    [...] Zo dat was ff schrikken. Vanaf zaterdagavond 19 uur lag blogmania uit de lucht. Heb ik een backup?? Nee dus en daar sta je dan als langjarige ICT-er. Maar alles was gelukkig in feedburner en google-cache goed terug te vinden. Vandaag vanaf 15 uur hebben de watsnel.nl de web- en databaseserver een trap gegeven en het draait weer. (watsnel kost nagenoeg niets, maar ja in het weekend hebben ze geen helpdesk, en geen telefonisch support. Toch maar eens een ander overwegen.) Meteen maar een Wordpress backup (wp-db-backup) en schedule (wp-cron) tool geinstalleerd. Dat slaapt een stuk prettiger kan ik wel zeggen. [...]

  26. 3148 Jack 2006-03-31 21:30:24

    hey, I have made a backup but when ever I try to load it through PHPMyAdmin is gives me this error:

    Error
    SQL query:

    #
    # Table structure of table `wp_categories`
    #
    CREATE TABLE `wp_categories` (
    `cat_ID` bigint( 20 ) NOT NULL AUTO_INCREMENT ,
    `cat_name` varchar( 55 ) NOT NULL default '',
    `category_nicename` varchar( 200 ) NOT NULL default '',
    `category_description` longtext NOT NULL ,
    `category_parent` bigint( 20 ) NOT NULL default '0',
    `category_count` bigint( 20 ) NOT NULL default '0',
    PRIMARY KEY ( `cat_ID` ) ,
    KEY `category_nicename` ( `category_nicename` )
    ) ENGINE = MYISAM DEFAULT CHARSET = latin1;

    MySQL said:

    #1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1' at line 10

    Any help would be appreciated

  27. 3349 Martin 2006-05-23 06:23:17

    I got it loaded and activated the plugin. Something hapned and now the page can't be viewed and I can't access the admin page. Not sure what I did. Any suggestions?

  28. 3346 Martin 2006-05-23 06:26:11

    I was able to back into the site and deactivate. Everything is now back. Still not sure what happened.

Leave a Reply



About

Brewer philosopher.

User