Support

Akeeba Backup for Joomla!

#12850 Problem with cron

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, 04 July 2012 06:46 CDT

bredamcguigan
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? yes
Have I searched the tickets before posting? yes
Have I read the documentation before posting (which pages?)? yes
Joomla! version: 2.5.4
PHP version: 5
MySQL version:
Host: 1and1
Akeeba Backup version: pro


Description of my issue:
Hi I've just installed the pro version of Akeeba backup and I've tried to get a cron set up on my host. I followed the instructions from this page: https://www.akeebabackup.com/documentation/quick-start-guide/automating-the-backup.html and used the instructions for setting up cron on your own server.
The vget method did not work so I tried the curl one. It seemed to run but I got this messaage at the end:
Warning: Failed to save cookies in /temp/cookies.txt 200 ok(uisercer):

Is there some way I can check if the cron is making the backup and also I can't figure out how to set the frequency of the backup in the cron, I only want it to run once per day?
thanks
Breda

nicholas
Akeeba Staff
Manager
I believe you mistyped something. Your command line should specify /tmp/cookies.txt (t-m-p, without an e in the middle) instead of /temp/cookies.txt. You added an extra "e" in there.

Has the backup completed? That's very easy to find out. Go to the backend of your site, Akeeba Backup, Administer Backup Files and check if the backup is reported as OK.

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!

bredamcguigan
Hi Nicholas,
I made a typo when putting it into this ticket but it was ok in putty.
When I log into the admin area of the site, Akeeba backup and administer backup files I am only seeing the backups I did inside Joomla, should I see the cron backups there if they were successful?
If yes I'll log in tomorrow and see if there is a new one.
Regards
Breda

nicholas
Akeeba Staff
Manager
In that case you don't have write access to the system-wide tmp directory. Let's try a different CRON command line:
curl -b $HOME/public_html/tmp/cookies.txt -c $HOME/public_html/cookies.txt -L --max-redirs 1000 -v
"http://www.example.com/tmp/index.php?option=com_akeeba&view=backup&key=YourSecretKey&format=raw"
Where:
- public_html is the directory which contains your site. It may be public_html, htdocs, httpdocs, www or something in the like. You can check it with your FTP programme
- www.example.com is your site's domain name
- YourSecretKey is the secret key for the front-end backup feature

I suspect that it might also work if you remove the entire "-b $HOME/public_html/tmp/cookies.txt -c $HOME/public_html/cookies.txt" part from the command-line, but your mileage may vary.

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!

bredamcguigan
Thanks Nicholas,
I will try this, can you tell me where it sets the schedule for the cron job, I don't want it running every minute, once per day is enough?
thanks,
Breda

nicholas
Akeeba Staff
Manager
Hello Breda,

You'll have to ask your host about that. I can only go as far as telling you what the command line is, within a degree of accuracy. For more information regarding the use of your host-provided CRON setup tool you have to ask your host. I can't know how each host's control panel works :)

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!