Support

Akeeba Backup for Joomla!

#18613 Automatic Backup (This may be the right way?)

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 tampe125 on Monday, 23 December 2013 10:47 CST

perthcity
EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:

Hi Nickolas,

I have got a question regarding automatic akeeba backups.

I installed jumi extension on my joomla site.(Ifyou dont know this extension, it lets you include, scripts in this particular case- php codes anywhere on your site)

Created a new entry in the components/jumi called backup and pasted this code

<?php define('SITEURL', 'http://www.example.com'); // Base URL of your site
define('SECRETKEY', 'MySecretKey'); // Your secret key
define('PROFILE',1); // The profile's ID

// ====================== DO NOT MODIFY BELOW THIS LINE ======================
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,
SITEURL.'/index.php?option=com_akeeba&view=backup&key='.
SECRETKEY.'&profile='.PROFILE);
curl_setopt($curl_handle,CURLOPT_FOLLOWLOCATION,TRUE);
curl_setopt($curl_handle,CURLOPT_MAXREDIRS,10000); # Fix by Nicholas
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
    echo "Sorry, the backup didn't work.";
else
    echo $buffer;
?>


Changed the site url and secret key....

Created a jumi module and linked to the "backup" entry created inside jumi previously

Created a new article
Included the following inside this article to load the jumi module(which includes the code mentioned above)
{loadposition backup}

Created a new menu item
Linked to the previous article
Set the permission to super user

Now I can see this menu item when I log into frontend. When I click on it, it lets me backup the site without going to the backend...Thats what I was planning or hoping to do until a few weeks back.

At the moment the site backs up itself...Is this normal? It was not backing up before and now all of a sudden the site decided to backup automatically :)

Is this the right and secure way to do automatic backup?

Or should I try something else?

Thank you.

tampe125
Akeeba Staff
Hello,

I really suggest you to avoid triggering backup creation from user surfing.
We used to have a plugin that was doind exactly what you're doing right now: we dropped support for that since there are a million of things that could break your backup. And a broken backup is useless.

I suggest you to take a look at our documentation, there are several options in order to automate your backups, just pick the one that's better for you.

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!

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!