Friday 03rd July 2009
 
 
 
 
 
 


 
 
1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 4.25 out of 5)
Loading ... Loading ...

DBC Backup For Wordpress v1.1

May 8, 2008 Author: Chris T Posted in: Wordpress Plugins
 

DBC Backup, is a simple way to schedule daily database backups using the wp cron system. You can select when and where your backup will be generated. If your server has support you can select between three different compression formats: none, Gzip and Bzip2. The plugin will try to auto create the export directory, the .htaccess and an empty index.html file to protect your backups.

Version 1.1

The backup file is also protected by a small hash key which make it impossible for someone to guess the backup name and download it.

During generation, a log will be generated which includes, the generation date, file, filesize, status amd the duration of the generation.

Except the cron backup, you have also the ability to take backups immediately. The backups are identical of what phpmyadmin produces because DBC Backup is using the key procedures of phpmyadmin.

DBC Backup was built to be fast, flexible and as simple as possible.
DBC Backup Requires at least: 2.5 and it wasTested up to: 2.5.1

= What’s New=
Version 1.1

———–
- Added option to specify the interval between crons. e.g 1 hour, 2 days, 3 weeks, 4 months etc etc
- Added option to remove older than x days backups after a new backup generation

Version 1.0
———–
- First Initial Release

== Installation ==

1. Upload folder dbcbackup to the `/wp-content/plugins/` directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. You can enter the admin page from the link ‘DB Cron Backup’ on the top menu.
4. Configure the plugin settings and you are ready.

If the plugin can’t create the export directory you will have to do it manually and don’t forget to chmod 777 it.

== Frequently Asked Questions ==

= The plugin takes a backup whenever i setup a specific cron job =
If the time of the cron is before the current time the wp cron system is adding the cron job to run at the next page view, despite of how long ago it is set.

= Why only the none compression format appears =
Because Gzip and Bzip2 are not installed on your server.

Download DBC Backup v1.1

 
Views: 7,350 Tags: , , ,
 

Feed for this Entry Trackback Address The permalink
 

 

56 Responses to “DBC Backup For Wordpress v1.1”

 
#1 Chris T Says:
April 29th, 2008 at 10:13 am

This is the first plugin i release for wp, i am pretty happy about it, i hope you like it. It is the result of my 2 months studies on wp and everything i have learned so far.

 

 
#2 Rob Says:
April 29th, 2008 at 10:28 pm

Great plugin, thanks! I was wondering if you might also include a feature to make the schedule longer than daily. Maybe weekly? Or, could you set a max number of backups? Otherwise, they’d have to be deleted fairly regularly so as not to fill up the account.

 

 
#3 Jon Says:
April 30th, 2008 at 5:07 am

Great plugin!

I do agree with the above comment. If you were able to add backup rotation to the feature set where it would delete the oldest backup every X days, that would be great!

I’m using another plugin that does the exact same, however, I’d gladly switch over given the above was added.

Keep up the great work!

 

 
#4 Copias de seguridad de Wordpress con Says:
April 30th, 2008 at 10:48 am

[...] DBC Backup, es un plugin para Wordpress que permite programar y realizar copias de seguridad. [...]

 

 
#5 Daniel Says:
April 30th, 2008 at 4:47 pm

I get the following error when trying to activate it:

Plugin could not be activated because it triggered a fatal error.

Parse error: syntax error, unexpected ‘}’ in /Library/WebServer/hopfam/blog/wp-content/plugins/dbc-backup/dbcbackup.php on line 293

Any ideas?

 

 
#6 J. Backlund Says:
April 30th, 2008 at 5:23 pm

Hey! Nice plugin, but I really would like a setting which allows me to backup the database once a week!

Great work!

 

 
#7 Chris T Says:
April 30th, 2008 at 6:03 pm

@Daniel did you edited the file my mistake or not ? try to re-download the package and re-upload it.

Thanks for your comments, i see the option to set other than daily schedules has some serious demand, so it is now in my doto list as well the rotation thing. You can expect the next version in a few days, i must first finish the my second plugin for wp, WP-Explorer :)

 

 
#8 mark Says:
April 30th, 2008 at 8:44 pm

I have code for a larger management project i’m working on that works with your code. It’s the reverse: a db-import. It’s not a plugin, just a 2-page form for now. If yer interested on dumping import functionality into the plugin, I can eml ya the code..

 

 
#9 Chris T Says:
April 30th, 2008 at 10:21 pm

That’s definitely not the problem, this plugin is based on this http://www.t3-design.com/t3-db-tools/ one which is still mine but for another php framework.

The truth is i really have regretted making a script which can do so much with db while the main engine hasn’t been proved invisible or something. I am not gonna make the same mistake with wp. I think that every admin only needs or should need only backup through his wp, vb, sed, admin cp.

 

 
#10 James Cox Says:
May 1st, 2008 at 5:33 am

Hi, I have created the /backup directory, installed the plugin and change the settings to 777 for the folder However I get the following error…

Folder /backup exists.
File .htaccess wasn’t created, check permissions.
File index.html wasn’t created, check permissions.

 

 
#11 Daniel Says:
May 1st, 2008 at 6:01 am

Chris…thanks for the response. I did re-download and install it, but I get the same error. I haven’t touched the file. Further thoughts?

 

 
#12 Chris T Says:
May 1st, 2008 at 9:36 am

@Daniel, delete the whole folder, redownload the package and reupload it in ascii mode, it’s really important to delete first the whole folder. My only thought is that during upload the file gets corrupted, otherwise everybody else should get the same error.

@James Cox, use the full path to the export directory not just /backups.

How to find the full path of a folder
- Create a file path.php
- With this code

< ?php
echo getcwd();
?>

notice the space between the < ? and remove it

- Upload it to the folder you want and call it from the browser, eg domain.com folder wp-content/backups htttp://domain.com/wp-content/backups/path.php it will echo the full path to that folder.

 

 
#13 Daniel Says:
May 1st, 2008 at 11:54 pm

Chris,

Thanks for your time again. I did as you said and got the same error. I’m not a newbie at uploading files, or working with websites…and I’ve uploaded a bunch of plugins already…so I wonder if it’s not my environment, or something else. I’m running PHP 5.1.2 on Mac OS X Server 10.4. We can take this discussion private, if you’d like.

Daniel

 

 
#14 James Cox Says:
May 4th, 2008 at 2:10 am

thanks Chris T

 

 
#15 Chris T Says:
May 8th, 2008 at 2:31 pm

The new version 1.1 is out, i added the option to specify an interval between backups, i don’t think someone will need any more options there, you can set from every hour, to every 3 days, and from 2 weeks to 12 months.

The rotate feature was added, you can select to remove all old backups or only the older than x days backups or just disable it be a serious admin and keep a complete backup archive on your computer. lol

This release felt really nice and i think it completes the role of the dbc backup as a plugin.

 

 
#16 Roy Says:
May 8th, 2008 at 4:24 pm

I can activate the plugin, but the DB Cron Backup link makes a 404 (version 1.1).

 

 
#17 Sean W Says:
May 8th, 2008 at 4:34 pm

I have uploaded the plugin and activated it with no problem. Whan I click on the link DB Cron Backup I get this error message:

/wordpress/wp-admin/dbcbackup/dbcbackup-options.php was not found on this server.

Version 2.5.1 of Wordpress and version 1.1 of your plugin.

 

 
#18 Justin Says:
May 8th, 2008 at 4:48 pm

So… I just upgraded and now it’s busted. Error 404.

 

 
#19 Chris T Says:
May 8th, 2008 at 7:31 pm

Do you have similar problem with plugins like post views, post ratings or plugins that have a secondary file for the options page pluginname-options.php most common ??

Anyway try to re-download the plugin and upload/overwrite the dbcbackup.php and tell me if it works for you now. This isn’t necessary for people who don’t have problem with the top level menu link, which is/should be like this wp-admin/admin.php?page=dbcbackup/dbcbackup-options.php

 

 
#20 Sean W Says:
May 8th, 2008 at 8:45 pm

I did as you suggested, but am still getting the same link for DB Cron Backup. However, I am able to use version 1.0 of your plugin with no problem.

 

 
#21 Sean W Says:
May 8th, 2008 at 8:48 pm

And just for my amusement, I did the upgrade from version 1.0 to version 1.1 and works nicely. The link for DB Cron Backup is correct. Will test further and report back.

 

 
#22 Chris T Says:
May 8th, 2008 at 10:01 pm

You lost me there, so after you redownloaded the plugin, the url is ok ?

 

 
#23 Sean W Says:
May 8th, 2008 at 10:15 pm

What I did was redownload v1.1 of your plugin and I still had the same issue. Next, I removed the v1.1 plugin and then installed the v1.0 of your plugin. v1.0 works fine.

I then noticed that within the wordpress admin, it was telling me that there was an update for it to v1.1. I used that link to have it go out and download and install v1.1.

All is working fine now. I have tested the backups for the last few hours and everthing is working great.

 

 
#24 Justin Says:
May 9th, 2008 at 1:41 am

Well, at first I used the automatic link, and I found error.

Then I downloaded it manually, uploaded, overwrote… same problem.

Now tonight, I deactivated the plugin, nuked the folder, uploaded a fresh copy and it works.

Go figure!

Thanks for the plugin!!

 

 
#25 Justin Says:
May 9th, 2008 at 2:11 am

btw, it seems the plugin treats the wp-admin folder as the root. Is this intentional? Or is it just my install? In other words, if I wanted the backup folder to be at the site’s root I would enter “../databack/” for the location.

 

 
#26 Chris T Says:
May 9th, 2008 at 5:55 am

@Justin, no it’s not intentional, when you “backup now” the currently working path is the wp-admin but during crons the currently working path is the site’s root.

That’s why there is an instruction to put full path to the folder you want to export the backups.

Check comment #12, to find the full path of a folder.

 

 
#27 Roy Says:
May 9th, 2008 at 7:35 am

I accidentally also installed 1.0 and then overwrote it with 1.1 because I was fooling around with a plugin updater plugin and now it works fine (earlier this updater plugin also managed to get the new Ask Apache to work fine while my manual upgrade didn’t work).

 

 
#28 Justin Says:
May 9th, 2008 at 1:19 pm

Well, I’m not sure what the deal is, but it creates the path I set within the wp-admin folder. I ran that path script you pointed out and checked with my host’s documentation to be sure I had the right path.

 

 
#29 Justin Says:
May 9th, 2008 at 1:23 pm

nneevveerrrmmiinnddd…

I was transposing a character! Sorry!

Thanks for the help!

 

 
#30 Chris T Says:
May 9th, 2008 at 3:02 pm

Don’t worry about those, I just want to know that everything is ok and that the plug works for other people except me lol.

Btw i would like some other info like testimonial, generation times, sizes if it produces better and faster results than other plugs out there…

T3 needs a little fame on the wp side :)

 

 
#31 Ian Says:
May 10th, 2008 at 3:41 pm

Great idea for a plugin. I’m having a puzzling problem with it.

I have two blogs on the same server. Both are running WP2.5.1, both have DBC Backup 1.1. The parameters for each are set identically (same folder to back up to, same timing, etc), both are “active”. Folder, .htaccess, and index.html all read out as good. But only one of the blogs backs up automatically. That one shows the “next schedule” message thus:

Next Schedule is on: 2008-05-10 00:00:00 | Current Date: 2008-05-10 08:29:29

The other blog (that doesn’t auto-back up) shows this:

Current Date: 2008-05-10 08:29:35

I.e. no “next schedule”. It works fine when I click “Manual backup”. Turning off the DBC plugin on the other (functional backup) blog doesn’t help (I turned off both, reactivated just the problematic one, re-set the parameters, no luck). I deleted the plugin and re-downloaded and re-installed it, no help.

Any suggestions?

Ian

 

 
#32 Chris T Says:
May 10th, 2008 at 6:02 pm

@Ian, they are both set active ?? That weird…

What do you mean same folder ?? I hope you meant similar cause to identical folders in two domains on the same server can’t have the same full path.

Hrm i really can’t think something, if it doesn’t say anything about the next schedule it means it’s not active but i assume you have gone over it many times. The two blogs share the same db or something ?

If you check the active and click save it doesn’t schedule a new backup ?

 

 
#33 Ian Says:
May 10th, 2008 at 7:28 pm

What do you mean same folder ?? I hope you meant similar cause to identical folders in two domains on the same server can’t have the same full path.

Both blogs are hosted on iayork.com (they do not share databases), and both are set to back up to the folder “/home/iayork/iayork.com/Backups”. Since the backup files are given unique names, and there’s no identifying information in .htaccess or index.html there shouldn’t be a conflict, I think. (But just in case I tried changing the target directory for the problem blog, to /home/iayork/iayork.com/BackupMR and saved changes — still no luck, there’s no scheduled backup.

The second blog thing is likely a red herring but is a useful confirmation that there’s nothing intrinsically wrong with the way I have things set up or configured.

Any thoughts on troubleshooting I can try?

Ian

 

 
#34 Chris T Says:
May 14th, 2008 at 8:11 am

I tried to reproduce this, making a domain on my localhost install two blogs install dbc backup but i couldn’t reproduce this, sry man.

Can you setup an admin account for me to take a look at it ?

 

 
#35 BusyMom Says:
May 21st, 2008 at 3:43 pm

I am using Wordpress within a ZenCart framework. I would love to backup my ZC database at the sametime using this WP plugin (since it is more robust than any of the ZC plug-ins). I’d be willing to hack my own code or as an alternative, I would request this as a new function request… Besides backing up the WP database by default, I’d like to provide a second database to backup into the same directory (obviously with a different filename) with all the same options. Basically it could just be a second pass through everything, but with the database to be specified by the user (or hardcoded if I hack my own code). I glanced quickly through the code, and it looks like it is structured in a fairly straightforward way where it would just be a matter of calling the right functions with the right parms for a second time, but I can’t put it all together with the knowledge I have. What is your opinion of adding a feature like this?
Thanks, Karen

 

 
#36 DBC Backup, plugin para Wordpress 2.5 | Seosistems.com Says:
May 27th, 2008 at 11:16 pm

[...]  DBC Backup, un plugin para Wordpress que permite programar y realizar copias de seguridad utilizando el sistema de cron de Wordpress. [...]

 

 
#37 Joe Says:
May 30th, 2008 at 12:26 pm

Howdy,

This plugin looks great, however…

When I try to access the options page, I get an error:

Parse error: syntax error, unexpected $end in /wp-content/plugins/dbc-backup/dbcbackup-options.php on line 260

(using Wordpress 2.5.1)

Is this a known problem?

 

 
#38 Rich Pedley Says:
June 3rd, 2008 at 8:54 am

I’ve just installed this plugin, and like it so far but I have a few suggested enhancements:

1. In the DBC Backup Logs – allow the backups to be downloaded by changing the file listing into a link.

2. add in an extra cron ability to email the backups out to a specified address.

 

 
#39 Rich Pedley Says:
June 3rd, 2008 at 12:40 pm

and I forgot a third one.

3. ability to prefix the backups with the site name, though that could be by default. This is useful when you have more than one site.

 

 
#40 Andrew Says:
June 3rd, 2008 at 6:57 pm

Hey, nice plugin. Made a change though and I recommend it.

add_action(’admin_menu’, ‘dbcbackup_menu’);
function dbcbackup_menu()
{
if(function_exists(’add_submenu_page’))
{
add_submenu_page(’plugins.php’, ‘DBC Backup’, ‘DB Cron Backup’, ‘manage_options’, dirname(__FILE__).’/dbcbackup-options.php’);
}
}

Adds the menu to the plugin submenu rather than as a root menu. Just thought it was more appropriate. Thanks!

 

 
#41 Bingo Says:
June 6th, 2008 at 11:24 am

Hey. Nice job!
Maybe this is a stupid question, but how do I restore a backup if something goes wrong with my database?
Does dbc backup have this function?

 

 
#42 links for 2008-06-07 « RabiFoot at wordpress.com Says:
June 7th, 2008 at 9:34 pm

[...] DBC Backup For WordPress v1.1 » T3 Design (tags: wordpress plugin backup) « links for 2008-06-06 [...]

 

 
#43 icelander Says:
June 18th, 2008 at 8:58 pm

Hi! I hope so this is plug witch i was looking for but I can’t test it :(
I activate plug and when I go into the # DB Cron Backup there is announced that I don’t have permission to get in.
Any ideas what’s wrong?
WP 2.2.3

Grats

 

 
#44 Justin Says:
June 19th, 2008 at 9:07 am

Just thought I’d let you know how the plugin is working for me now that I’ve gotten it working.

DBC Backup has been running flawlessly for about a month on two different sites both running WordPress 2.5.1. One’s a traditional blog and one is using WordPress as a CMS, so there’s far more pages than posts on the latter site.

I actually used a backup from DBC Backup last week! A page editor accidentally deleted the page title from the site’s homepage and when I went to manage pages I noticed there was a page with “(no title).” I thought a blank page had been inadvertently created so I deleted it without looking it at. (Dumb idea, I know) Didn’t take long for me to figure out it was the homepage… But, it also didn’t take long to restore the page from the backup created automatically that morning by DBC Backup!

I’ll show some WP love and re-post this on DBC Backup’s WP.org plugin page. :)

 

 
#45 Justin Says:
June 19th, 2008 at 9:13 am

Oh also…

The backups complete in around 0.3 seconds with ranges from 0.107 to 0.8 seconds on one site and are roughly the same with the other. Current backup sizes are 722kB for one site and 1.05MB for the other.

 

 
#46 Rich Pedley Says:
June 20th, 2008 at 12:40 pm

I just had an issue on another server, one I use as little as possible.

The script was falling over at line 50:
$sql = mysql_query("SHOW TABLE STATUS FROM ".DB_NAME);

on this server I had to amend tat line to:
$sql = mysql_query("SHOW TABLE STATUS FROM `".DB_NAME."`");

adding the backticks around the DB_NAME fixed the problem.

 

 
#47 DBC Backup For Wordpress | Tutoriale wordpress Says:
July 9th, 2008 at 6:15 am

[...] vom explica ce este şi cum se configurează DBC Backup For Wordpress, un plugin ce îi va face să tresalte de bucurie şi pe cei mai paranoici dintre voi ce doresc [...]

 

 
#48 etruel Says:
July 30th, 2008 at 1:25 pm

WOWWW!!! this is the first plugin for db backup (of many I tested) that work OK!!

If you’ll think include the files-backup option, I have a php file that I run manually for zip files and folders into my wordpress dir. If it can help you or you want the file, email me please.

Thanks a lot.
etruel
PD: I now, I now, sorry for my english…

 

 
#49 Гинеколог Says:
September 11th, 2008 at 2:13 pm

Update! WordPress 2.6.2

 

 
#50 Tom Usher Says:
September 24th, 2008 at 6:47 pm

Hi,

I’m glad to have this plugin. However, I’ve run into the plugin generating two and three backups in rapid succession within a second or two.

The backups themselves take some 40 to 50 seconds each to complete, so it seems that these are different instances of the program running at the same time. The plugin log though only shows 1 backup for each day and not the duplicate errors. I only see those other backups when I use FTP. Each duplicate gets its own name and they aren’t always exactly the same size. I haven’t checked their content.

This is an intermittent error.

I’m not too concerned with it. I kill the duplicates or just let the plugin do it since I’m having it kill older backups.

I’m running:
WordPress: 2.6.2
MySQL: 4.1.22-max-log
PHP: 4.3.11

Also, I have a request concerning your next update. Will you please move your options link in the menu to show up under “Settings”?

Thanks.

Blessings,

Tom Usher

 

 
#51 kretzschmar Says:
November 3rd, 2008 at 2:37 pm

Fantastic plugin
but In WP2.7 it looks UGLY if plugins add their pages to the main navigation.

 

 
#52 kretzschmar Says:
November 3rd, 2008 at 2:53 pm

Just use add_management_page and everything looks fine.

 

 
#53 Mike Berg Says:
December 12th, 2008 at 4:45 pm

I keep getting the error “Folder /public_html/backup wasn’t created, check permissions.” I’ve checked the path and permissions over and over, and they are both fine. I can’t get the plugin to work at all! I’ve even created the backup folder manually via ftp and set it to 777. Not sure what else to try. I really want to get this plugin going!

 

 
#54 kchayka Says:
December 17th, 2008 at 1:02 am

Parse error: syntax error, unexpected $end in /wp-content/plugins/dbc-backup/dbcbackup-options.php on line 260

This is caused by a php short tag on line 190:
</select></label> <?

Change it to <?php and the error goes away

 

 
#55 Mike Berg Says:
December 17th, 2008 at 3:28 pm

I made the change but am still getting the permissions error.

 

 
#56 7 pluginuri esenţiale | Tutoriale wordpress Says:
January 8th, 2009 at 4:06 am

[...] DBC Backup – backup al bazei de date wordpress la intervale regulate, ştergerea backupurilor vechi, securizare a folderului ce conţine fişierele, uşor de instalat şi configurat. [...]

 

 

 

Leave a Comment