Support

Akeeba Backup for Joomla!

#8550 Using fetch instead of wget

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 Thursday, 05 August 2010 05:05 CDT

trevorsm
Hi

My hosting company has removed wget but has suggested using fetch instead. Just replacing wget with fetch in my cron job resulted in: fetch: illegal option -- -
I removed --max-redirect=10000 and it created a .jpa file in the backup folder but did not upload it to S3.
Can I use fetch instead of wget?

Thanks
Trevor

dlb
I don't know anything about the fetch command. I'll flag this for 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
"fetch" is not a standard Linux command. I've never heard of it and I don't know how it works. You can ask your hosting company if "fetch" supports an unlimited number of HTTP redirections (required for backing up your site). At this point I can only suppose that your existing backup is partial and corrupt, therefore should be treated as having no backup at all.

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!

trevorsm
My hosting company thought that fetch supported unlimited redirections by default but on checking the backup file there was a lot missing.

I will look again tomorrow.

Thanks
Trevor

nicholas
Akeeba Staff
Manager
That's what I thought. My guess is that fetch follows the standard web practice of aborting at 20 redirections.

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!

trevorsm
I have managed to get it working using cURL as suggested in your documentation. Here is the cron command:
/usr/local/bin/curl -b /tmp/cookies.txt -c /tmp/cookies.txt -L --max-redirs 1000 -v "http://mydomain.com/index.php?option=com_akeeba&view=backup&key=mykey&format=raw" > /dev/null

Thanks
Trevor

nicholas
Akeeba Staff
Manager
Indeed, curl is the best option when wget is not available. I'm glad you resolved this!

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!