TurnKey Linux Virtual Appliance Library

Question about fully backing up a Joomla appliance with TKLBAM

Hi all.

First of all, I would like to congratulate the team for the great TKLBAM tool, it really really makes things easier (or even possible) for us newbies.

I have a question, though, because I’m unable to fully backup/migrate a Joomla appliance using out-of-the-box TKLBAM. This is what I think it’s happening (correct me if I’m wrong, not a lot of experience with Joomla here):

  1. Joomla installation goes into /usr/share/joomla15/, so this directory is excluded from the backup profile (it’s not listed in dirindex, nor in dirindex.conf). I suppose that the reason for this exclusion is that this directory is maintained by the package management system.
  2. When you install, for example, a template, the template must go into /usr/share/joomla15/templates/ (as explained in the official Joomla documentation and this post).
  3. So when you backup the appliance your custom templates don’t get included.

I’ve tried adding an override to include /usr/share/joomla15/ in the backup and doing so results in the full site migrated, but I don’t know if this breaks package management, as warned in the documentation.

So my question is, which is the best way to make the wonderful TKLBAM fully backup a Joomla appliance? Do I have to carefully include every directory for everything I’ve installed (modules, templates, plugins, etc.)? Is it OK to include the full /usr/share/joomla15/? Would doing something like this be OK? Or am I getting all this wrong (wouldn’t surprise me ;·)?

Thank you very much in advance.

enter 2.0

Liraz Siri's picture

Add a specific override

Thanks for thoroughly researching the issue before asking. The Joomla package was created before TKLBAM existed so we may need to update it so that templates are stored in /var/lib/joomla15 instead of /usr/share/joomla15. I propose in the meantime you use an override in this case to add your template to the backup, but do it in the most specific way possible. Instead of adding /usr/share/joomla15, which will backup all the Joomla package files, try adding /usr/share/joomla15/templates/YOURTEMPLATE.

Note that TKLBAM supports overrides for good reason. Though it's true that it is generally a bad idea to mess around files/directories that "belong" to package management, sometimes you don't have a good alternative. It's not the end of the world though. Your system won't explode. Worst case scenario you'll have a little extra work to do when you restore a backup or after you upgrade the Joomla package.

Will do so

Thanks for the quick response.

Glad to know you're considering a fix for this. Will follow your advice in the meantime.

enter 2.0


L. Arnold's picture

Why not /var/www/joomla15 ?

I also use the old Joomla package.  I never has made sense that it starts out in /usr/share/joomla15...

My new Magento install is aiming at /var/www/magento/

It would make sense, to me, to use /var/www/ for WWW work unless, somehow, it is important to have a special redirect is being used for a Package like Joomla.  It seems easier to me to have the full WWW work be in one folder.

Thinking about the Joomla migration to the lucid foundation.  Wondering if a production server should be migrated soon or wait for full release.  Will there be "upgrade" paths for Old Joomla intalls?

Too many questions for a holiday weekend.

best,

Jeremy's picture

I get your point but there is a reason

I started writing but then I found a previous post from Liraz that explains it better. Have a read here. Incidentally the thread relates to TKLBAM too so is quite relevant. 

Liraz Siri's picture

New 11.1 Joomla images do exactly what you suggest

Joomla is now installed from source to /var/www, instead of via a custom package.

To answer your question, even though it isn't entirely relevant anymore, packages, even custom packages, should avoid installing files to user-maintained directories such as /var/www. At least according to the Debian Policy Manual.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)