Support

Akeeba Backup for Joomla!

#37226 Can't backup my site

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
4.1.4
PHP version
8.0
Akeeba Backup version
9.2.3

Latest post by nicholas on Wednesday, 08 June 2022 06:49 CDT

ProjektDesign

Hello there,

I have the problem that cronjob backups don't work on my Joomla site.
The site is password restricted, which shouldnt be a problem. The Cronjobs work while im logged in but not else.

It also didn't work with frontend Backups. It just redirects me to the login.
I used this URL for the Backup https://atoc2.aquion.de/index.php?option=com_akeebabackup&view=Backup&key=uvssbUv6wma2QpkUDU

I also used the build in Joomla Service but that didn't work either.

I made an account for you if you need to look at the site.

login: Akeeba
pw: KiCcoJ7YfCVZVu@N

 

I added an log file of the one time it worked when i was logged in.

 

Regards,

Michael

nicholas
Akeeba Staff
Manager

> The site is password restricted

> It also didn't work with frontend Backups. It just redirects me to the login.

OK, this is not exactly accurate but it's close enough.

Your site is currently in off-line mode.

When Joomla is in off-line mode it prevents access to any frontend URL. This includes the frontend URLs provided by Akeeba Backup for the legacy front-end backup URL or with the Akeeba Backup JSON API (you didn't specify but they both work on the same principle).

When you are not logged into the site Joomla BLOCKS the request and issues an HTTP 301 redirect to the login page. As a result, it never routes the request to Akeeba Backup. Our code never runs; it's blocked by Joomla.

The only way to automate your backups with a CRON job on a site set to Off-line through its Global Configuration is using the native Joomla CLI script. This does not go through the web server; it runs code directly on the command line. Joomla does not check for a logged in user under CLI; the CLI application does not have the concept of logged-in users nor does it care about whether your site is set to off-line or not. It always runs the command you tell it to run.

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!

ProjektDesign

Hello there,

 

i just checked it but my website is not currently set to offline.

 

https://share.cleanshot.com/58EQay

 

The most part is only for registered users, but i got one public site https://atoc2.aquion.de/public. Is there someway to redirect this site to the cronjob without getting redirected to this site? I mean its public and the frontend backup be aswell.

nicholas
Akeeba Staff
Manager

As per the attached file, it seems that it is.

If it's not Joomla's off-line mode you are using some (I assume third party) plugin which requires a login to visit the site OR you have set the Home menu item to an access level other than Public.

In the former case it's a problem with the plugin you are using. I can't help; ask its developer.

In the latter case, it's exactly the same problem as the off-line mode. If your default menu item is set to an access level other than Public then this access level MUST be met for all access to your site, including for component which implement their own API like Akeeba Backup. This is how Joomla works. Nothing we can do about it.

The only way to automate your backups with a CRON job on a site whose Home menu item has an access level other than Public is using the native Joomla CLI script. This does not go through the web server; it runs code directly on the command line. Joomla does not check for menu items or even for a logged in user under CLI; the CLI application does not have the concept of menu items or logged-in users. It always runs the command you tell it to run.

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

Easter vacation: We will be closed from 17 April 2025 16:00 UTC to 21 April 2025 06:00 UTC due to observing the Christian Easter holiday. Support will be closed during that time for both new tickets, and replies to existing tickets.

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!