You are here
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):
- 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.
- 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).
- 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.
Add a specific override
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
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,
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.
New 11.1 Joomla images do exactly what you suggest
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.
Add new comment