Support

Akeeba Backup for Joomla!

#8867 [SOLVED] Override from the CLI does not appear to work

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Wednesday, 01 June 2011 05:25 CDT

user39177
Setting up the command to run from cron though when I execute:

/usr/local/php/bin/php /www/somesite.co.uk/www/administrator/components/com_akeeba/backup.php -override "akeeba.basic.output_directory=/www/somesite.co.uk/backups" -override "akeeba.basic.temporary_directory=/www/somesite.co.uk/tmp" -override "akeeba.basic.archive_name=site-www.somesite.co.uk-20110520-1521"

Akeeba starts and displays:

Configuration variables overriden in the command line:
akeeba.basic.output_directory, akeeba.basic.temporary_directory, akeeba.basic.archive_name

Though then stop with the following error:

An error has occurred:
Could not open /www/somesite.co.ukbackups/site-unknown_host-20110520-142149.jpa for writing. Check permissions and open_basedir restrictions.

It is though my overrides are being ignored ?

nicholas
Akeeba Staff
Manager
This is a known issue. Not all parameters can be overridden in the command line yet. I am working on a fix for that and will publish a new developer's release at the latest by the end of next week.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user39177
Cool. That is very much appreciated. When running in a chrooted() environment running from the CLI will necessitate the requirement to override a lot of variables. Have a nice weekend.

nicholas
Akeeba Staff
Manager
Yeah, I know. That's one use case. I actually had to do that refactoring in order to make our brand new System Restore Points feature (taking backups of a single extension during its upgrade through Joomla!'s extension installer) work.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user39177
Good morning, Nicholas

I have upgraded to 3.3a1 but overriding the following does not appear to work yet:

akeeba.basic.output_directory
akeeba.basic.temporary_directory
akeeba.basic.archive_name

Which release will one be able to override these settings, please ?

nicholas
Akeeba Staff
Manager
OK, I found the bug :) I am now preparing a new developer's release for upload. Check back in 15-20 minutes and you should be able to download it. Thank you for your feedback!

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user39177
That works a treat; thank you :)

nicholas
Akeeba Staff
Manager
Awesome! One less bug in my kill list :) Thank you for your very fast feedback!

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!