The One Click Backup Plugin for WordPress 1.5 and above is ready. I have incorporated all the work done by Ryan Boren and Bob Apthorpe into it.
Some of the added features of this version includes:
- A tweaked and modified PEAR/Tar interface that does not require passthru for file backup. Now users with passthru disabled and users on Windows systems can safely use this plugin. Security suggestions of Bob have been added to the readme, so please read through those carefully.
- The MySql backup is done through code and not through passthru. Again, passthru deficient systems and windows systems will benefit.
- Simple plugin install, no code to be modified. Just copy the files around, create a directory and activate the plugin.
- Backup folder will NOT get recursively backed up.
PS: Passthru is not needed in this version, no special tools needed on server to perform backup.
Download the plugin zip file.
Please report bugs as comments.
[EDIT] Localized WordPress Backup/Restore Plugin with German Translations
I couldn’t get this to worrk until I changed all cases of backupRestore.php in the BackupRestoreForm.php file to backupRestoreAdmin.php
Whoops, good catch! Fixed in download.
Thanks
Excellent work!
I’ve installed the plugin and it gives me this error when I try to access to Backup/Restore inte administration panel:
Warning: touch(): Unable to create file ABSPATHwp-content/backup/index.html because No such file or directory in /xx/xxxxx/xxx/xxx/xxxxxxxx/www/mangasverdes/wp-admin/backuprestoreAdmin.php on line 6
Fatal error: Call to undefined function: get_settings() in /xx/xxxxx/xxx/xxx/xxxxxxxx/www/mangasverdes/wp-admin/backuprestoreAdmin.php on line 7
Thanks for your work.
Are you sure you have the right version and all the files have been copied correctly? It sounds like there was a file in your wp-admin folder called backuprestoreadmin and this was not replaced with the new one.
Yes, I’ve deleted all backuprestore from my wp-admin and plugins folders and reinstalled. But it still in error 🙁
Could be an url bug?
Thanks.
Make sure you download the following zip file.
http://weblogtoolscollection.c.....ckup15.zip
Does this work for the multi-user version? I’m a Blogsome user and I’d like to be able to back up my WP blog.
I am not sure since I do not have an installation to test it with. Give it a shot, it might work.
All fine al last, I was uploadind only two files of the pack to my wp-admin folder. Sorry and congratulations for your plugin.
Thanks.
I’m having what seems a small problem. If I install as directed, I get an error:
Forbidden
You don’t have permission to access /wordpress/wp-admin/c:\wamp\www\wordpress\wp-content\plugins/backuprestoreAdmin.php on this server.
By changing the backuprestore.php line that reads:
add_menu_page(‘Backup/Restore’, ‘Backup/Restore’, 9, dirname(__FILE__) . ‘/backuprestoreAdmin.php’);
to:
add_menu_page(‘Backup/Restore’, ‘Backup/Restore’, 9, ‘backuprestoreAdmin.php’);
I can get to the backuprestoreAdmin.php page OK, but I’m seeing some warnings:
10
Warning: Cannot modify header information – headers already sent by (output started at c:\wamp\www\wordpress\wp-admin\backuprestoreadmin.php:5) in c:\wamp\www\wordpress\wp-admin\admin.php on line 6
Warning: Cannot modify header information – headers already sent by (output started at c:\wamp\www\wordpress\wp-admin\backuprestoreadmin.php:5) in c:\wamp\www\wordpress\wp-admin\admin.php on line 7
Warning: Cannot modify header information – headers already sent by (output started at c:\wamp\www\wordpress\wp-admin\backuprestoreadmin.php:5) in c:\wamp\www\wordpress\wp-admin\admin.php on line 8
Warning: Cannot modify header information – headers already sent by (output started at c:\wamp\www\wordpress\wp-admin\backuprestoreadmin.php:5) in c:\wamp\www\wordpress\wp-admin\admin.php on line 9
These warnings don’t affect the function (thankfully! this is a great plugin!), but I’d like to know how to fix the problem. Any help would be greatly appreciated. Thanks!
Everything goes fine when importing from my WP 1.2.2 install (to 1.5 Straycat). But no posts on my blog show up. Have set all permissions right.. I looked thru the sql dump in BBedit, and sure my posts are there.. Hmm..
Did you run the upgrade?
Yeps.. When i’m running Backup/restore it just take a second or so..
Then: mysql -hDB_HOST -uDB_USER -pDB_PASSWORD -f DB_NAME < /home/******/public_html/wp-content/backup/1******75wordpress.sqlRestore successful.
New 1.5 Installation
I get the “Warning: Cannot modify header information – headers already sent by (output started at /../wordpress/wp-admin/backuprestoreAdmin.php:5) in /../wordpress/wp-admin/admin.php on line 6”
as mentioned before. It does not affect the working of the plugin, but is cosmetically annoying.
Thanks for the plugin.
Bill
Warning: fopen(/home/umetnic/public_html/wordpress/wp-content/backup/26022005wordpress.sql): failed to open stream: Permission denied in /home/umetnic/public_html/wordpress/wp-admin/backuprestoreAdmin.php on line 222
Warning: fwrite(): supplied argument is not a valid stream resource in /home/umetnic/public_html/wordpress/wp-admin/backuprestoreAdmin.php on line 223
Backup Successful.
;/ Is this Ok?
Keep up the good work!
P.S. I just checked, and there aren’t any files in my backup folder.
Either you do not have the “backup” folder created or the permissions for your backup folder are off.
The header warning is a bug. Even if it does not effect the functionality it is a plugin bug and should be fixed.
Fixed.
I’m the only user of my blog and my admin level is 10. This is what I get from the one-click install:
What version of WordPress are you running? Are there any other plugins/hacks installed? If upgraded to WordPress 1.5, have you made sure all the files have been replaced with the new ones?
I running 1.5 Strayhorn, never have used this plugin before. I have other plugins installed, but if it comes down to it, I’ll have to stick with phpMyAdmin 😉
It works fine with my WP 1.5, thanks a lot for this plugin.
installed and appears to done back-up with no problem.
when I try to download the back-up I recieve a 403 permission error-
“403 Permission Denied
You do not have permission for this request /wp-content/backup/18032005wordpress.tar.gz”
I’m green on all this – any ideas what I’ve done wrong?
Thanks.
Catonya
Might be a good sign security wise. however, I would FTP into your server and check to make sure that the file exists like it should, download it and unzip it onto your hard drive to be double sure.
I got the same problem as Christopher, everything seems to work fine, but when I check my site, nothing has changed! Is there a known solution?
I have the exact same error;
The file ‘backuprestore.php’ (function) makes a menu option with an url;
http://remidian/wp-admin/c:/ap.....eAdmin.php
…Hope you can fix !
Thanks!!
The plugin works fine, but it does backup the Backup folder recursively – at least on my server. What might be wrong?
DId you have the old plugin installed? In that case, the file might not have been overwritten. I would delete the file from the server and then re-upload the new file.
Thank you for this plugin. THANK YOU, I mean.
Fantastic tool. Thanks!!!
Tried to test this plugin locally, and received the following message
Warning: Invalid argument supplied for foreach() in C:\Program Files\Apache Group\Apache2\htdocs\wordpress\wp-includes\functions.php on line 1851
This occurs when I click on the backup/restore option. Any ideas what is wrong?
The error message did not occur when I installed the plugin on the server.
hmmm. the backup tool stopped working after i upgraded to WP1.5.1.2. what gives?
Hi,
I’m trying to restore my installation to a new hosting server.
unfortunately, their script doesn’t allow me to create the exact same usernames and database names; Can I edit these to match in the .msql file, or am I basically screwed?
Any help would be greatly appreciated.
Thanks
nevermind, got it working on the support forums. Thanks
I would like to make this plugin localizable. Can you have a look at my changes and roll them into the distribution when I’m done?
Great plugin! Only one complaint with it—it doesn’t work nicely at all with the Tiger skin for WordPress 1.5’s admin area. Other plugins all fit in with the skin but this one seems to have the text all over the place. It doesnt mess up functionality, just the display. Hoping there’s a fix for this soon 🙂
Otherwise, great work! Thanks!
Is there something special that move one backup to other site?
Can you direct download to your HD from my webpage.
my space is min. (15 MB FREE)
I am getting the same error: 1.5.1.3 version of WordPress
Warning: Invalid argument supplied for foreach() in /home/.quiterie/username/sitename.co.uk/wp-includes/functions.php on line 1819
When saving to a local computer -not sure what type and encoding to specify. Should this be a txt file or html? Should it be Windows encoded or UTF-8 to match WordPress’s default?
thank you for a great plug-in -I’ve been saving with three formats until I find out which one is correct -but I see this a great plugin even now!!!
Every thing seems to be ok, a sql file is generated,
but when I try to backup to local computer I get error..
Fatal error: Cannot redeclare class pear in /home/iamheret/public_html/mm108/wp-admin/PEAR.php on line 73
any ideas?
Works fine for me. Nice and easy. Good job ! Thanks 🙂
Looks nice, well done, thx.
Thank you for this great plugin. I love the touch and feel of it and it is bound to save me a lot of work. But I still have some problems.
The backup works fine. There’s a lot of stuff in the resulting SQL-File and that seems ok. But the restore seems to have problems.
I deleted a few things (pages and entries) and restored the database. The dialog told me that it was successful but the deleted entries and pages are still gone.What can I do?
When I try to use the plugin, I get the following error message:
“Warning: Invalid argument supplied for foreach() in /…../wp-includes/functions.php on line 1819”
Any ideas?
Cheers
Bernd
Amazing -worked like a charm first time. i tried another plugin and it never worked for me -this one worked perfectly. Thanks!
Any possibility of an upgrade now that WordPress 2.0 is out? Maybe a progress bar or someother extras?
Functionality to delete old backups would be nice also (click an option next to the name of the file to delete it).
Everything works fine on my WP 2.0
But the script backup older backup-files.
Is there any way, to exclude subfolders?
Legolas – That’s one of the features I’ve wanted also. I’ve been playing with the code myself and haven’t been able to figure it out exactly. (I’m a PHP novice.) But I have managed to add a function where you can delete an old backup file. I’ll continue to try to get it to exclude older backup files. There’s already some code in the plugin for it but it’s obviously not working.
I got it solved!! There is a loop in Tar.php that detects directory names. It’s supposed to exit if the directory name is ‘backup’. However it wasn’t exiting properly. I fixed that. I also added the ‘cache’ directory to the list of directories to be excluded. As mentioned in my previous comment I also added funtionality to delete backup files.
I have only tested the improvement on my own blog. If anyone is interested in testing it on their own blog please let me know.
I did it!! I fixed the bug that causes previous backups to be included in new backups. In my version anything in the backup directory will be excluded from a backup set when you backup files. I also added the cache directory to be excluded from the backup. Add this to the function I wrote about in my last comment (the ability to delete backup files from the Admin page) and I’ve added 2 new functions and fixed an existing bug.
So far I’ve only tested this on my own blog. Is anybody willing to test it on theirs? Let me know. I’d like to be able to make it available to anyone who wants it but would feel better if more people tested it first.
@Dave: I would test it on my blog
Hi.
Very nice plugin but i have a problem.
It works very well in backing-up my database but while i am trying to back-up WP files i have this error:
Fatal error: Maximum execution time of 15 seconds exceeded in /membri/eligor82/wp-admin/Tar.php on line 760
What i shoul do? TNX
Worked like a CHARM, allowing me to feel secure my stuff was backed up before moving up to WP 2.2 – I’m relieved and can go on to the upgrading with a light heart now.
Thanks a lot for the great work!
Has anyone else had problems with this plugin since upgrading to 2.0.2? It was working like a charm before then.
Any advice would be great.
Hi,
here the error code in my administration panel:
Database files in the backup directory:
Warning: opendir(/home.2/metropolz/www/wordpress/wp-content/backup/) [function.opendir]: failed to open dir: No such file or directory in /home.2/metropolz/www/wordpress/wp-content/plugins/wp-backup-1.5-localized/wp-backup/backuprestoreForm.php on line 32
Warning: readdir(): supplied argument is not a valid Directory resource in /home.2/metropolz/www/wordpress/wp-content/plugins/wp-backup-1.5-localized/wp-backup/backuprestoreForm.php on line 33
Warning: closedir(): supplied argument is not a valid Directory resource in /home.2/metropolz/www/wordpress/wp-content/plugins/wp-backup-1.5-localized/wp-backup/backuprestoreForm.php on line 38
I’m using wp 2.0.3
Greetings
Klaus
I can’t get this to work with WP 2.1.2. Any chance for an update?
Thanks for sharing!
SF
This is a VERY useful plugin; luckily I accidentally came across this post and I’m glad I did. Thanks much for this.
thank you for your plugin. is really easy to use
thanks for this great and very easy to use plugin!!
Worked like a CHARM, allowing me to feel secure my stuff was backed up before moving up to WP 2.2 – I’m relieved and can go on to the upgrading with a light heart now.
Thanks a lot for the great work!
I am using WP-DB_Backup and I am with that till today, but today I found that it causes heavy load and impact on page load time.. so looking for the alternatives.. which one do u suggest..?