Support

Akeeba Backup for Joomla!

#23838 Set cron job for Automatic backups

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 houba_houbi on Wednesday, 09 December 2015 03:59 CST

houba_houbi
Hello

I bought the akeeba pro to make backups with cron jobs for my 3 profiles (database, database et files in jpa et zip).
But I just discover that my webhost Ovh for shared hostings doesn't support to have parameters in the url for the cron jobs ! So only something like this 'www/cli/akeeba-backup.php'.
It works but of course only for the default profile.
Have you an idea to make my 3 backups in an another way by executing a script ? or ?

Thanks a lot and sorry for my poor english (I am french)
Regards
Cathy

tampe125
Akeeba Staff
Hello Cathy,

there's no need to append any parameter for the url.
You have to pass them using the CLI syntax, for example --profile=2. You can find more info inside the documentation.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

houba_houbi
Hello Davide
Thanks for your quick reply.
Yes I see that in your documentation. If I well understand, I can put this url : "www/cli/akeeba-backup.php --profile=2"
But my webhost doesn't accept this type of url : only letters, numbers -_/. (so no espace, no equal...)
So I don't know how to achieve my backups.
Thanks

tampe125
Akeeba Staff
Ok, so this is a different problem.
You don't have to use the CLI script, you have to use the Frontend backup feature. However, the problem is not solved, since even using the url with the secret key, you have to supply some options.
Long story short, the service your host is offering is useless.
You have to rely on an external source to trigger backups, we strongly suggest Webcron.org. They're not free, but very cheap (just few cents for every request).

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

houba_houbi
What a pity I think I bought a pro version for nothing... The documentation for the cron jobs seems to be for "dedicated hostings" and not for "shared hostings" ?

So I have 2 choice :
- run a cron backup with my webhost for just the default backup
- or run with webcron.org a frontend backup with all the choice I want

To make my choice Is the cron backup is better than the frontend backup ?
Thanks

tampe125
Akeeba Staff
Actually you do not have any choice: you have to rely on an external service.
Even if you don't pass any specific backup profile, you have to tell to the server script to follow all redirects (using --max-redirect=10000).
For each step Akeeba Backup will issue a redirect, if you have a very tiny site you can try to use your host feature, but as soon as it grows larger, there is the concrete chance that the backup process will get interrupted.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

houba_houbi
HI Davide
If I well understand, the redirects are only for the frontend backup method ?
I don't have this problem with the native cron backup ?
Thanks

tampe125
Akeeba Staff
Yes, that's right.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

houba_houbi
ok thanks for all your help !

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!