How to make a cronjob? | Joomla Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_TopicIcon
How to make a cronjob?
March 19, 2014
3:53 pm
Avatar
dev
Member
Members
Forum Posts: 4
Member Since:
March 19, 2014
sp_UserOfflineSmall Offline

Hello,

I am using your Xcloner component, your component is really helpful and utilised. I am looking for making a complete backup(Site & DB) by using a cron job once a day per week in FTP zipfile transfer mode.

 

I was trying to make an akeeba frontend backup using cURL command. But unfortunatly my tutor didn't accept to create a cron schduling in server cause of it's shared. 

I saw your component installed in my website shows to be modified a file. But i am not really sure about modifing anything. Could please help me?

March 19, 2014
10:10 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Inside the XCloner backend, there is a left menu called Cron, check that, it has all the info you need to start running the automated backups.

 

Ovidiu

March 19, 2014
11:16 pm
Avatar
dev
Member
Members
Forum Posts: 4
Member Since:
March 19, 2014
sp_UserOfflineSmall Offline

Thank you for your quick reply, I have completed the configuration step on my site. I got the following message

 

To run this script you need to create a custom config file inside XCloner Config, and call the script using php cli command like this:

php /****************/administrator/components/com_xcloner-backupandrestore/cloner.cron.php mycustomconfig.php

 

Excuse me! I am not very clear about it? I have an ambiguity in that. 

it has to rename the file cloner.cron.php as mycustomconfig.php? 

(or) 

I need to create a new file called mycustomconfig.php?

(and)

Where i can schedule my cron job in this case(An automatique backup per week)?

 

Thank you for your reply!

March 20, 2014
9:13 am
Avatar
dev
Member
Members
Forum Posts: 4
Member Since:
March 19, 2014
sp_UserOfflineSmall Offline

Hello,

Is there anybody to reply this post?

March 20, 2014
2:10 pm
Avatar
dev
Member
Members
Forum Posts: 4
Member Since:
March 19, 2014
sp_UserOfflineSmall Offline

Wow , there is no reply?

March 20, 2014
9:10 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Inside the XCloner Config->Cron tab area there is a field where you can save the custom config, check that and adjust the cron command with that new name, so replace mycustomconfig with the new name.

 

Hope it helps!

March 21, 2014
3:34 pm
Avatar
Guest
Guests

There is a tutorial at http://www.easycron......up-restore that may help you.

May 16, 2014
3:30 am
Avatar
Fred
New Member
Members
Forum Posts: 2
Member Since:
June 3, 2013
sp_UserOfflineSmall Offline

The directions here to this point are vague and do not help at all.

I spent a couple of hours trying to get this to work before it became clear what the instructions actually meant.

And this was after what seemed lke it would be a simple upgrade, well it changed some custom settings that I had.

 

Anyway, the error is basically telling you what you need to change your crontab (Cron Job) information to, but is vague.

 

Step One

 What you need to do is navigate through the menu on the left to XCloner/Administration/Configuration

When that page opens on the top menu of XCloner click the Cron tab.

Enter whatever you want into the Configuration Name text field ie. CronJob1

Enter Your email address in the next 2 fields

Go through the rest of the page and fill in any settings you have credentials for

Click SAVE at the top right of the web page

 

Step Two

Open a terminal client (ie. Putty) to your web server

Create a crontab or edit your current crontab by typing crontab -e

You can add the following command to your crontab

23 15 * * * php /var/www/YourWebSiteFolder/administrator/components/com_xcloner-backupandrestore/cloner.cron.php CronJob1.php

 

It all should be on one line your path to your web site may differ  the key is php a space path to cloner.cron.php a space CronJob1.php

Finally to stop from receiving 2 emails containing the same info disable one by adding &> /dev/null to the end of the command

So the copmplete line should look like

23 15 * * * php /var/www/YourWebSiteFolder/administrator/components/com_xcloner-backupandrestore/cloner.cron.php CronJob1.php &> /dev/null

 

That would run the cron job everyday at 11:15pm

 

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Omar Vera
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0