Saturday, June 20, 2009

Split ZIP Support in upcoming JoomlaPack 2.3

In my previous blog posts I described some of the new features arriving with JoomlaPack 2.3 and presented the brand new JPI4 installer. This time, I'd like to talk about a different feature, less visible, but very important nonetheless: Split archive support.

Some hosts impose a hard limit on the maximum size a file can have on their server. It's different than the account quota we're all used to. Whereas account quota limits the total size of files (and database contents) your account can hold in total, the maximum size limit imposes a restriction on the size a single file can have on the server. When your JoomlaPack backup archive tries to grow beyond this size (usually, that's 10Mb), your host abruptly ends the backup process throwing an HTTP 500 Internal Server Error.

The ZIP archive format supports a feature called spanning or spliting. A ZIP archive utilizing this feature can span multiple files of a predetermined maximum file size. For instance, you can have 20Mb of data spanning four 5Mb files. The unarchiver application will treat them as a single archive when extracting the ZIP file. JoomlaPack 2.3 is now able to take advantage of this feature with a new configuration option in the Advanced section. You simply set the maximum size of each part and let it work out the spanning details.

This new feature also caused an avalanche of required changes in pretty much all of the JoomlaPack Suite software components. For example, the component must support downloading the multiple parts. Kickstart has to expect and handle multi-part ZIP files. The same goes with eXtract, as it presently doesn't know about split ZIPs. Last, but not least, the JoomlaPack Remote application will also have to handle downloading the multi-part ZIP files.

Rome wasn't built overnight, neither does JoomlaPack. So far we have managed to implement the generation of split ZIPs and their handling in the Administer Backup Files page. Before the beta is released, Kickstart will also support split ZIPs. By the time 2.3 goes stable, eXtract and Remote will also support split ZIPs.

Our next goal is to give the JPA engine the same support. It's an equally engaging process, so it's not possible to predict if this will make it to the stable. It highly depends on the available time I've got to develop such a thing.

Meanwhile, you can try - at your own risk! - the split ZIP support by downloading the latest developer's release from the Bleeding Edge.

Wednesday, June 3, 2009

Introducing JoomlaPack Installer 4

One of the features we were working on with utmost secrecy – or not so much of it if you are following us on Ohloh – is that of a new installer script, duped JoomlaPack Installer 4, or JPI4 for short. JPI4 is supposed to be a site installer script which, unlike its predecessors, doesn’t depend on the Joomla! Framework and has less chance of failing when some ACL components are installed. It’s also supposed to be lightweight and easy to use. Here is a sample video of it in action:

A few quick conclusions from this video:

  • I write better English than I speak
  • I can’t speak and use the computer at the same time
  • jQuery UI effects are quite impressive

You are welcome to share your thoughts with us. Your feedback is most welcome!

Sunday, May 17, 2009

JoomlaPack 2.2 imminent and 2.3 feature plan

With JoomlaPack 2.2 Stable being only one week away from official release (it's scheduled for May 24th), work has began on JoomlaPack 2.3. You may think it's a little too soon, but it's never early enough to design new exciting features, don't you think?

Before I start ranting about new features, I want to share with you some exciting last-minute features added in JoomlaPack 2.2:

  • Easy to navigate, translatable back-end menu. It was there in 1.2.x, it was removed in 2.0, so it's back again. With proper icons. Cool!
  • Back-end Control Panel quick backup icon. Integrates JoomlaPack right into your Joomla! Control Panel. The icon displays a warning icon if your last backup has failed or if backing up your site is overdue. Useful and cool.
  • Display optimization. Since some JoomlaPack text was unreadable on certain browsers (Chrome, anyone?), I made the font-size uniform throughout.
  • One-click profile change. having to select the active profile and click on the Change Profile button was an overkill. Now you just have to select the new profile. Convenient.
  • Plus some important bug fixes you are about to find out. Just wait for May 24th :D

Since JoomlaPack is in a very mature state, the releases in the 2.x series really focus on detail, automation, and plain cool stuff. About this latter category, even though less than 1% of you will ever use them - or get to know about them - I know that those who will use them will really appreciate them! What's on the menu, then?

  • Easier site migration with DirectFTP file packer engine. Annoyed by having to backup, download the backup, upload the backup to the new server and unpack the backup file there to create a clone or transfer your site? Me too. The optimal solution would be backing up directly to the target server, sparing you from the need to download / upload the backup file. This is what DirectFTP does. Instead of backing up to an archive file, it backs up to a remote FTP server. Life is neither fair, nor perfect, so getting it to run requires some trial and error adjusting the Magic Numbers. This is a feature for geeks and professional web developers, not the average layperson. Preliminary tests show that it has some good potential.
  • CRON made easy. Setting up your CRON script is a two step process. First, you have to set up the PHP file which runs the backup. Then, you have to set up the CRON job on your server. While JoomlaPack can't help you with latter step (it exists in the realm of server setup which JoomlaPack doesn't have access for security reasons) we can help you with the former part. Let's face it. Few people understand enough PHP and cryptic parameters to successfully set up the script which runs the backup. To this end, we'll include a "CRON script manager" feature. It will create those scripts for you. What's more, it can be set up to email you the backup file. This is nowhere near being rock-solid, as the maximum size of an attachment is usually too small to hold a complete site backup. It can, however, efficiently hold a medium-sized database dump. So, there you go, you can have something like daily database backup delivered to your doorstep... umm... email address, I mean.
  • Split ZIP files. On popular request! Some servers put a cap on the maximum size of files on their server, for example 10Mb. If you try to create a larger file, they just fail. The ZIP format has this handy multi-volume feature, but so far JoomlaPack can't make use of it. This is about to change. This is a very advanced feature, useful for a handful of occasions, so don't expect it to integrate perfectly with JoomlaPack's "Administer Backup Files" feature or JoomlaPack Remote. The only way to download the split backup file will be using FTP. Of course, something is much better than nothing and the people to whom this feature is addressed can attest to this fact.

Every time I write a post on new features I get the impression that the only thing missing from JoomlaPack is the kitchen sink. Of course, I am always wrong; you prove me wrong. That's not something bad, on the contrary. Every time you prove me wrong, you get to have even more features implemented for everyone to benefit. Don't feel shy, please come by our Feature Requests forum and ask for something crazy and useful. Who knows? Maybe the next useful feature is the result of your request!

And since we are at this, don't forget to vote for JoomlaPack in JoomlaShack's competition for the Ultimate Joomla! Extension. Thank you!

Sunday, April 12, 2009

What you don’t see matters the most

Whereas it’s true that most JoomlaPack features are exposed by means of its graphical user interface, its the most important aspect is the backup core engine. What matters the most is having reliable backups every time, under any circumstances. This is what the backup core engine (CUBE) does and that’s why I had to improve it for the upcoming JoomlaPack 2.2.

Up until now, certain bottlenecks in the file packing code made it virtually impossible to use JoomlaPack on big sites running on slow servers. The reason was really simple. JoomlaPack had to scan all contained files and folders of a given folder in one go. If this operation took long enough (on slow servers it did), it would crash due to time outs. Same goes with packing big files. If many smaller files had been archived before hitting the big file, a timeout may had occurred.

Up until now we had to work around these limitations with certain fuzzy procedures, such as fiddling with Magic Numbers and changing to the Slow algorithm. The effect was that fewer operations would happen in a single step, reducing (but not always eliminating) the possibility of a time out occurring. Of course, this was a half-baked attempt to circumvent the problem, rather than solving it.

JoomlaPack 2.2.b1 will include my fixes to these problems. JoomlaPack is now smart enough to detect if a long file operation might cause a timeout, stop it, roll back and execute it in a new step, having the maximum amount of execution time available. There is also an improved filesystem scanner engine which detects large directories and forces their scanning to occur inside a single new step, to avoid timeouts.

The benefit of this approach is that JoomlaPack will now be able to work on sites where it wouldn’t work out-of-the-box and it will be substantially faster on sites where workarounds had to be implemented. For example, my own site required the Balanced settings in order to be possible to back it up. The backup took 15 minutes to complete. Now it works with the Optimistic settings and backs up in under 3 minutes! Wow!

Moreover, some servers couldn’t handle the amount of information required to be stored for large sites in the database between subsequent steps and crashed with a database error. I have included an option to force storage of temporary data in files instead of in database. This is required if you have directories deep down the fileystem hierarchy, containing more than 100-200 files.

Finally, there is a new feature you’re gonna love: Live Update. That’s right, JoomlaPack can detect if there is a new version released, notify you and install it with a single click. Please note that this feature requires that your server can draw data from other Internet sites. If RSS syndication with other sites works for you (i.e. you can display other sites’ RSS feeds in Joomla!) then Live Update will probably work as well. Also note that on servers where JoomlaPack’s “alternate installation” is required the single click update will fail. This is a limitation of the server.

Saturday, March 28, 2009

The Earth Hour 2009

With only half an hour before 20:30 local time in Greece, I am turning off the lights on my house. Don't know what I'm talking about? It's this year's Earth Hour. We just turn off all the lights for an hour, 20:30 to 21:30 local time, wherever we are on the planet. It's the least we can do for the planet we live in.

Being a person who cares, I've decided to participate. For this hour I am turning off all lights, my PC (which consumes more electricity than a light bulb), light up some candles and enjoy the atmosphere. If I get a sudden Internet connectivity craving, there's always my EeePC. With less than 20W of power consumption, it's the most eco-friendly device I own :)

So, did you turn off your lights today?

Monday, March 9, 2009

Still on the free side

In my last blog post I shared my thoughts with you about having two versions of JoomlaPack, one paid and one for free. Well, 2.1 Stable is released and – as you noticed – it remains free of charge.

There was a number of factors which led me to this decision. The most important of which was the sentimental factor. I began creating JoomlaPack as a small personal project in order to help me accomplish a task I had at hand. I released it under the GPL in hope that other people would find it useful. The rest is history…

I simply found out that the spirit of JoomlaPack commanded that it should remain Free, both as in “free speech” and as in “free beer”. It is my personal attempt to prove that Free software doesn’t have to be an ugly, cryptic, undocumented and unsupported piece of code, meant only for the privileged elite of “hackers” and “geeks”. JoomlaPack was designed with the user in mind, right from the start.

But, let’s face it, the developer, yours truly, does have the need to make a living. Let alone the need to finance this expensive hobby: developing, writing documentation, supporting, improve the web infrastructure of this project does cost money and time. That’s why I decided to keep accepting donations and added advertisements on JoomlaPack.net. I sincerely hope that you’ll keep on donating . This is what keeps this project both Free and “for free”.

As a side note, I’d like to point out that both the “Free Edition” and the “Special Edition” are fully functional and distributed without any charge. You should think of their names as in “free from unnecessary features” and “made for sites and people with special interests in mind”. I know, this isn’t probably the most thought out or correct marketing approach, but you know me… I am just a code monkey, not an advertising agency :)

Saturday, February 14, 2009

Free of charge, unless you want to pay for it

I have been considering a way to make a little money out of JoomlaPack. The donations are not very disappointing, but let’s face it: donations can only go that far. On the other hand, I detest proprietary (closed-source) software. Moreover, I believe that users should be able to pay in order to use a software only if they choose to do so. So, how do you combine Free (as in speech and as in beer) with Commercial?

To this end, beginning with the JoomlaPack 2.1 Stable release scheduled for mid-March, there will be two versions of the JoomlaPack component and JoomlaPack Remote: the Free version and the Special Edition version. Both versions will be 100% Open Source software (licensed under the GPL, so you can download their source code for free, anytime) and you can use them on an infinite number of sites for an unlimited period of time. Their main difference is that the advanced stuff (like multiple database backup, multiple backup profiles and extension filters) will only be available to the Special Edition version. You’ll gain 1 year access to Special Edition downloads by donating 20 Euros to the project.

So, your options for using JoomlaPack will be:

  1. Don’t pay a dime; use the Free version. About 90% of users won’t need anything more than that in order to backup, restore or move their site between hosts.
  2. Evaluate Special Edition for free. Why pay for something you can’t get to use beforehand? Our “Free Ride” plan gives you time-limited (24 hours) access to the full Special Edition downloads. You can keep the software after this period expires and use it legally on an unlimited number of sites. Yes, it’s like giving away free beers!
  3. Download the source code and build it yourself. Free and Open Source Software (FOSS) is about freedom of choice. If you don’t like paying, you can always download the source code for free and build it yourself. It’s not for the faint at heart, though… BTW, the Bleeding Edge will only serve SVN builds of the Free version.
  4. Donate 20 Euros and get 1 year of access to the Special Edition downloads. This is – obviously! – what I am hoping you’ll do if you are a serious webmaster or a web professional. Our site will have an integrated “donate & register” sign-up feature to support this option. Everybody who has donated the equivalent of 17 Euros or more since January 2008 will be entitled to a free account.

Please note that no matter if you use the Free or Special Edition version, how you got it and if you have a current JoomlaPack Club membership, you can use our software on an unlimited number of sites – commercial or not-for-profit – and for an unlimited amount of time. There will be no restrictions whatsoever. This is possible thanks to the provisions of the GNU General Public License under which JoomlaPack is licensed.

Some things were, are and will eternally remain free of charge. All of the other tools, like Kickstart and eXtract, will remain free of charge. Support will remain free of charge, for all. We take great pride in our support and we are willing to keep it this way! Documentation will be provided on-line and free of charge (albeit with a few unobtrusive advertisements) through our JoomlaPack.net site.

All of these changes will be applied somewhere in the first half of March, so don’t ask me for details yet! I hope you don’t mind this small change of policy. It’s just that the developer needs money to buy something to eat and rent a place to stay (and write code – computers don’t like rain).

Wednesday, January 21, 2009

Getting closer to 2.1

We are getting closer to the release of 2.1.b2, a landmark release of JoomlaPack. With this version, we are getting closer to what we considered feature-complete all along those two years. The new features – compared to 2.0 – are:

  • Easy Mode. We were all newbies and inexperienced users. Some of you have installed Joomla! only a short while ago and find the plethora of JoomlaPack’s features, options and settings intimidating. Feel intimidated no more! The Easy Mode basically provides a cut-down, easy to grasp, oversimplified interface without compromising on the effectiveness. The configuration page is much easier to use, as you only have the choice between three predefined sets of configuration options. Newcomers to the world of Joomla!, welcome the easiest way to backup your site.
  • Off-site directory inclusion filter. Backup folders outside your web server’s root!
  • Extension filters. Single click exclusion of components, modules, plug-ins, templates or even languages from your backup! In other words: build a site with everything installed; if you need a customized version, just select which extensions not to back up. Cool feature for professional web developers.
  • Front-end “light mode” backup. You can now back up from any Internet-capable device: EeePC’s, Pocket PC’s, cellphones, Wi-Fi enabled iPods… you name it!
  • Support for tar and tar.gz. Note that tar.gz requires an external gzip executable. A niche feature for all you *NIX fans.
  • Automatic troubleshooter. JoomlaPack detects if it failed last time and tries to apply two sets of “safe but slow” defaults. This will let it run smoothly on even more hosts without asking us for help and without you having to tweak Magic Numbers. Nice and clean!
  • Better notification of potential issues. Potential problems will show up before backing up; this is the best approach to help you to keep out of harm’s way.

JoomlaPack also received its fair share of bug fixes and minor adjustments. From the easiest to the fairly complex, these fixes and adjustments help our software work in even more “difficult” environments.

As always, we are commited to providing the community with a professional grade, reliable, open source and Free (as in speech and as in beer) backup solution, complete with documentation, support and a set of incredible utilities.