Support

Akeeba Backup for Joomla!

#8353 Bug when backing up via cron job

Posted in ‘Akeeba Backup for Joomla!’
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

user8639
Hi. I'm using the Pro version 3.0.a1.1 (2010-03-02). When backing up via a cron job, the site name is not included in the output file name. My backups look like this:

site--20100302-160102.jpa

All my other backups include the site name:

site-domain.com-date-time.jpa

Thanks!

dlb
Thank you for the report, I'll pass this on to Nicholas. :)


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

nicholas
Akeeba Staff
Manager
This is a known limitation of the CRON script. You see, the CRON script (backup.php) runs under the command line PHP interface which can't report the site's hostname. In fact, on shared hosting, the only way to find the host name is to query Apache environment variables which contain the hostname you requested when accessing the site. To cut a long story short, there is no way for the CRON script to automatically determine the hostname. You have to specify it manually in the profile settings, i.e. change your template name from site-[HOST]-[DATE]-[TIME] to site-www.example.com-[DATE]-[TIME].

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!

user8639
Thanks for the update! I've modified my profile so it says the domain name instead of [HOST]. Maybe in a future version you could update the tooltip for the archive name label so it includes the CRON limitations. Thanks!

nicholas
Akeeba Staff
Manager
You're welcome! I just updated the English translation to warn that this tag doesn't work in the CRON mode.

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: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

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!

Summer vacations: Our support will be closed for replies and new tickets from August 6th to August 21st, 2022 due to summer vacations.