Support

Akeeba Backup for Joomla!

#9296 Cron issue : profile selection does not work

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 Monday, 16 January 2012 15:24 CST

user10905
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? yes
Have I searched the forum before posting? yes
Have I read the documentation before posting (which pages?)? yes
Joomla! version: 1.5.22
PHP version: (unknown)
MySQL version: (unknown)
Host: ovh release 2
Akeeba Backup version: latest

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:

Hy

I just bought and installer 3.3.11 version, i used to be on 3.2.7 version.

I have a cron problem : profile selection does not work, it just executes default profile (ie = 1)


I'm on a dedicated server, the command line is as below :
/usr/local/bin/php5 /home/titi/www/administrator/components/com_akeeba/backup.php -profile=2

Where can it come from ?

I have a test server, lower hardware configuration but same distribution (release2 from ovh) and it works ! ??

Thanks for your help.




nicholas
Akeeba Staff
Manager
This sounds like a CRON setup issue, not a bug in backup.php. I am using it on all of my sites (many different configurations) and they all use a non-default profile. Check the CRON job between the two servers. There is something different, even if it's something as small as a double quote somewhere.

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!

user10905
Hello

Thanks for your quick answer

that's odd

after very carefull look, both command line are absolutely the same ...

could there be a folder/right permission issue ?

I use crawltrack on the production site ... (which blocked akeeba installation by the way), but even when I disable it by remonving the code from index.php files it still does not work

i really have no idea ...

Thanksin advance for your help

nicholas
Akeeba Staff
Manager
No, permissions are irrelevant. If permissions were the issue, the backup wouldn't run at all. According to what you said, the problem is that the backup runs, but the default profile is being used.

Crawltrack is also irrelevant. backup.php is running a pure command line backup, without loading your site through the web. In fact, it doesn't even load Joomla!, just some select Joomla! library files.

I suspect that you may have a "stuck" memory file. Go to your backup output directory and remove all .php and .log files. Then go to Akeeba Backup, select each profile and for each one of them go to the Configuration page and click on Save. This should reset any "stuck" files.

If this still doesn't work, try using --profile=2 (two dashes, no space) in your command 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!

user10905
Hello Nicholas

After several tests, I have find out that it works but with a space between the 2 dashes ...

- -profile=2


I first tried like that :

1/ .../backup.php -profile=2 -description="TOTO"
--> TOTO appeared but not profile = 2

then

2/ .../backup.php -description="TOTO" -profile=2
--> profile 2 appeared but not TOTO

And finally

2/ .../backup.php - -profile=2
--> profile 2 is ok


...

Whats do you thinkf about that ?
Can I use it on a production site ? (no security issue or anything else ?? :)) )

Thanks
Ed

nicholas
Akeeba Staff
Manager
I'm thinking that for some reason PHP reports one parameter less than entered in the command line. Well, in this case, just precede your real parameters with one which doesn't exist, e.g.
.... backup.php --foobar --profile=2
(--foobar doesn't exist, it's there just to make PHP happy)

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!

user10905
thanks

I use just 1 dash like

... backup.php -tmp -profile=2

it works, i'm happy :)

Great job with your component by the way !

nicholas
Akeeba Staff
Manager
Thank you!

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!