v1.9 just released!
With this release the script attempts to follow a monolithic M-V-C design pattern within the bkup.php file. It instantiates the model, view and controller classes once and injects those objects throughout the rest of the script. This seems to have a side benefit of saving memory usage by avoiding what I did in the older versions with multiple object instantiations. The most significant memory savings was in the writeMySQLDump function which replaces the 3rd party mysqldumper class. The new function writes the dump file as its created instead of dong it all in memory then writing it.
I practiced my M-V-C implementation mostly on the Verify screen functions so that has changed a lot behind the scenes. The Download File section was rewritten to eliminate the use of the 3rd party downloadfile class since I was doing most of the heavy lifting anway. I also updated the module code to eliminate the "Ready, Set, Let’s do some backups!" message by using a "header" statement instead of "a href". The only outstanding wish I have is to create my own zip function instead of using the wonderful pclZip class found in bkup_inc.php. That is an effort better left for another day, maybe after the Polar Caps melt!
Bunches of other changes are sprinkled throughout as I replaced if/else statements with switch and ternary expressions. Simple while loops were replaced with for/endfor statements. Unless bugs pop up or new features are needed this version should be stable enough to survive for a while.
Here’s the official list of changes:
* Improved download process
* Improved MySQL dump process
* Reduced memory usage
* Refactored code to M-V-C design pattern
Upgrade and new installation instructions in README.txt.
Enjoy!
This tool is so great and very helpfull. Thanks you for making it.
But I’m still missing the opposite function. Where you can dump
from the backup file and
back in to modx again. Could that be possible in the future. Please.
I think, thererfor I am! But what I am, and why...?
So far I only have the principals of what I would like;
I make a backup zip with BkupMODx and store it.
My server crashes or my modx installation is borken. All data lost.
I install a new, blank modx installation without demo data.
I dump the data from the backup zip in to my new installation via i.e. BkupMODx and everything is OK again.
I don’t know is this is possible, but at least it’s my wish.
I think, thererfor I am! But what I am, and why...?