Support

Akeeba Backup for Joomla!

#8395 Backup to Amazon S3 - Works via backend but not 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 Sunday, 04 April 2010 22:22 CDT

user6116
Hi,

I've scoured the forums for a couple of hours trying to find a solution, but no luck.

Akeeba Backup Professional 3.0.a5.1 (2010-03-24)

Through the backend joomla admin interface i can run a back up fine and have the resulting files put straight onto my Amazon S3 account.

Using the WGET cron, I get nothing - the notification email is pretty much blank.

Using the CURL cron,
curl -b /tmp/cookies.txt -c /tmp/cookies.txt -L --max-redirs 1000 -v "http://www.mydomain.com.au/index2.php?option=com_akeeba&view=backup&key=MY-KEY&format=raw"

I get the following (my URL, IP and KEY have been hidded for obvious reasons)

* About to connect() to www.mydomain.com.au port 80
* Trying IPADDRESS... * connected
* Connected to www.mydomain.com.au (IPADDRESS) port 80
> GET /index2.php?option=com_akeeba&view=backup&key=MY-KEY&format=raw HTTP/1.1
User-Agent: curl/7.12.1 (i686-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
Host: www.mydomain.com.au
Pragma: no-cache
Accept: */*

dlb
Oh, this is such a Nicholas question! :D I'll flag it for his attention.


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
The "403" error comes from the front-end backup code and it really means "you haven't supplied to correct password". Here is something very vital: your front-end backup key should consist of only alphanumeric (letters & digits: 0-9, a-z, A-Z) or it should be URL-escaped. Since this may be a bit tough, I have found an on-line URL encoder. You just paste your secret word in the big text area and press "Convert source data". Copy the string from the utf-8 box to your front-end backup string and you're set.

For example, if you are backing up www.example.com and your secret word is l@l$3#, you should end up with a CRON command line like this:
curl -b /tmp/cookies.txt -c /tmp/cookies.txt -L --max-redirs 1000 -v ""http://www.example.com/index2.php?option=com_akeeba&view=backup&key=l%40l%243%23&format=raw"


Also note that due to Joomla! filtering out input data, if you use certain combinations of special characters, e.g. lower than and greater than symbol, your secret word may be chopped or altered without even notifying you. This is a known limitation/feature of the Joomla! CMS. That's why the documentation suggests that you use a plain alphanumeric secret key, which eliminates such potential problems.

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!

user6116
Hi Nicholas,

Thanks for the detailed reply.
I've checked and ensured the "password" is correct.

This time i essentially get the same automated response email BUT instead of 403 Access denied i now get 403 Operation not permitted.

I tried both my Amazon Access Key ID & Secret Access Key just incase i was using the wrong "secret"

Could the 403 be something to do with my host?

Also, is there an option to upgrade my AKEEBAPRO subscription to the ENHANCED SUPPORT version as the main reason I purchased this product was due to the ability to automate backups of multiple sites to Amazon S3


EDIT: Just realised what the "secret" word is.. Its what i set in the backend of Akeeba... Will test and confirm

user6116
Confirmed... all the "secrets" and "passwords" confused me.

Consider this resolved.

THanks

nicholas
Akeeba Staff
Manager
The front-end backup secret key IS NOT your Amazon key and IS NOT your Joomla! password. Please, please, read the documentation first.

Go to Akeeba Backup's Control Panel. On the upper right there is a "Parameters" icon. Click on it. A modal configuration dialog appears. Please find the "Enable front-end and remote backup" and set it to "Yes". Right below it, here it is: "Secret word". This is the one you have to put in the URL. Let's make an experiment. Change it to "notverysecret" (without the quotes) and click on Save.

Use the following CRON command line:
curl -b /tmp/cookies.txt -c /tmp/cookies.txt -L --max-redirs 1000 -v "http://www.mydomain.com.au/index2.php?option=com_akeeba&view=backup&key=notverysecret&format=raw"


Does it work for you now?

Furthermore, there is yet another automated backup option for Pro subscribers: http://www.akeebabackup.com/akeeba-backup-documentation/native-cron-script.html. This should work on most servers, as long as they don't impose an execution time / max server load limit on command-line scripts.

PS: Upgrading to Enhanced support is currently not possible. However, if you buy the Enhanced Support package and contact me I can either refund you the difference or extend your subscription for 6 months. Also note that I will be off-line this week Tuesday to Saturday, so there's no point rushing into buying the support package. Tip: look for the "Support Unavailability" calendar on the right hand of all support-related pages, including this one. It shows when I'm mostly or completely off-line.

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!

nicholas
Akeeba Staff
Manager
OK, we posted at the same time :) I am glad you figured it out.

You are right. All those "secrets" and "passwords" are completely intimidating. I've tried to have only one "secret key" in Akeeba Backup itself. However, each third party service (FTP, Amazon S3, DropBox, you-name-it) requires its own set of authentication parameters, calling them something fancy to further the confusion.

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!