Schedules a backup for your the following items:
- data dir
- settings.php
- .htaccess
- full db (mysqldump)
and
- mail a zip
- upload it to a ftp location
Can also manualy request a backup to be downloaded (button in the admin settings) or tested based on configured settings.
Depends on:
- cron working! (daily, weekly, monthly)
- email provider accepting large files and zip files (when using email option)
- you need to save the settings once!
- phpmailer plugin (only for backup-to-mail option)
- php modules zlib, zip, ftp and openssl must be installed
Version History
0.6
- added: backup-to-ftp for remote backup
- added: button for testing the configured settings
- added: direct download when doing a manual download from admin settings
0.5
- first release to the public
Todo:
- validate emailto as valid email adress
- admin option for locking the table on mysqldump
- send errors in mail
- work with AND without phpmailer
- backup-to-disk only option (so no email/ftp), with retention
- secure zipfiles (encryption)
- restore from zip (no priority)
DISCLAIMER: I do not accept any responsibility or liability for any damage or loss that will result directly or indirectly from using this plugin even if it is based on an error of the plugin.
ColdTrick IT Solutions
(c) 2009 ColdTrick IT Solutions
View Jeroen Dalsem's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
I activate the module and typed in my settings... but when i click on Test oder Backup i get a Blankpage and the url is:
http://mydomain.de/pg/elggbackup/index.php?test=yes
http://mydomain.de/pg/elggbackup/index.php
But nothin happens... i think the url is wrong... can you help me?
@Ben did you save before you tested?
@Ben i think you're server is missing one of the following modules
- php modules zlib, zip, ftp and openssl must be installed
Thanks for writing this. I tested it all the way through - dropped database and restored. You'll probably want to add some checks for whether modules are installed or you'll get more people like Ben. You know: extension_loaded('zip') ...
I modified the phpmailer plugin so people can choose whether to override the default mail handler now. That allows people to use the defailt mail handler and use phpmailer for the backups.
Hi Jeroen ,
Great plugin, one quick Q. Can the back-up be used if you're moving the site to a nother domain ?
I tried backing up my DB from local and putting on a domain, but it seem that the domain etc have be changed in some files (settings and config) also there are some data in the DB tha needs to change the domain
It is a lot of work just to move the site form development to live ... Or do you have a nother way i can do this without that much of a hassel
http://docs.elgg.org/wiki/Move_site
hi Dalsen,
i have the blank page for backup and test backup...the same in 2 different sites.
all it's saved and php modules zlib, zip, ftp and openssl are enabled...
:(
bbyebye
Hi Jeroen,
I have installed this plugin with the phpmailer and all the dependencies. When i test the backup from the settings panel of plugin, i get a mail with a empty backup.zip file. Any idea?
Thanks,
RuTe
Like lord55, blank page and does not work on production (hosted server), although all libs are there. Test server it works...
Any idea why some of us have this problem? Too much load maybe?
Ok... tried a little more. Still no luck, but just blank page; so far cant recommend (using 1.6.1)
Zip file contains only sn directory, it is failing on the data dir:
// adding upload folder (no trailing slash)
$Z->Add(substr($CONFIG->dataroot,0,-1));
Hello. I get this message:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6815744 bytes) in /home/sidikle1/public_html/iussc.net/webdav/mod/elggbackup/vendors/zipwrap.php on line 184
How to fix this?
Anyone tested this on 1.6.1?
Is it operational somewhere / reliable results?
@Tom
how about...
*** YOU ***
test this on v.1.6.1
and then post your test results for the rest of us to enjoy.. lolz ;-)
@Dhrup: Read 2 posts up before answering ;)
Thought to give it a try to automate our backup from within Elgg, to make our site more consistent... ok on test and dev server, but does not work on our production: Script never returns after the system mysqldump command. It does leave two files in data dir: sql dump & a zipped data dir (48MB). Zip does not yet contain the sql file... We increased execution time to 120sec... did not help...any idea?
@Tom did you try to mail or ftp it?
ftp...but it never reaches that point... it just does not return from the mysqldump... so... problem must be some permission or something, I suppose... strange though...
Little scary that the zip is also in the datadir, so is also included in the next backup run, if it is not deleted like in our case. It recursively adds with every run...!
well, for now we revert to our backup script that does the cron-job every night quite happy: http://community.elgg.org/pg/pages/view/343975/
hello
backup is nice ,( not tried yet ) but what about restore ? lol
Can this work for 1.8 or is there any other backup system?
Surprized that such plugin that meet such fundemental need got only 4 reccomendations! and not available for 1.8...
I see people questioning whether this works for 1.8. I wonder if anybody has checked it for 1.8.
I did. Here are my observations: Surprisingly for a plugin written for "ancient" elgg 1.5, it activates properly. This is remarkable, knowing that some plugins written last year fail for lack of manifest files. Settings screen dispays properly, and 'Run Backup and Download' even allows you download a file named 'download.zip', albeit empty. 'Test Backup' did not work. Actually so surprised that it did get along with elgg 1.8.8 so far, so well, I do suspect the parts which did not work were due to something I did wrong (maybe @Jeroen Dalsem could tell? or not?). I have all the php add-ons mentioned. I checked the code but could not notice anything obvious...
At least the repo is online now so maybe an update is in the works...