Problem in running Cron Job in XCloner | Wordpress 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_Feed Topic RSSsp_TopicIcon
Problem in running Cron Job in XCloner
October 30, 2014
7:00 pm
Avatar
Judah
Member
Members
Forum Posts: 10
Member Since:
October 4, 2014
sp_UserOfflineSmall Offline

Hello, 

 

I am trying to create an auto backup of my website using the cron feature. 

 

I did the following: 

1. In wordpress, I went to configuration --> Cron and created a conguration Name "AutoBackup".

2. When to my cpanel (bluehost) and created a cron job with the following info: 

php /home2/abcuser/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php mycustomconfig.php

3. When I go back into my WP Cron and click on "execute cron", I receive the following error: 

php /home2/abcuser/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php mycustomconfig.php

 

**Please note I replaced my username with abcuser into the above steps (2 & 3) 

November 2, 2014
8:31 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

There is no error message there from XCloner, you should check if WP Cron is properly running the cronjobs.

 

Ovidiu

November 4, 2014
8:57 pm
Avatar
Judah
Member
Members
Forum Posts: 10
Member Since:
October 4, 2014
sp_UserOfflineSmall Offline

The error message Im getting from XCloner is: 

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 /home2/spanisu6/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php mycustomconfig.php

 

To generate the above error message, I was in the WP XCloner Configuration tab and clicked on "execute cron"; (After I created a custom configuration name and entered the php code into my hostings cron section - see original post) . It took me to a new tab with the above error message. 

Here is a screencast of the error message: http://screencast.co.....t/YdSqsbpI

 

Any suggestions on how to fix this?


November 5, 2014
9:18 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

You need to run that indicated cron command inside a server cron scheduler software, cron execution via browser has been disabled for security reasons.

Ovidiu

November 7, 2014
4:03 pm
Avatar
Judah
Member
Members
Forum Posts: 10
Member Since:
October 4, 2014
sp_UserOfflineSmall Offline

In my cpanel (bluehost) I  created a cron job with the following info: 

php /home2/abcuser/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php mycustomconfig.php

 

I do not see any new backups after I save this cron line to run. 

 

Any suggestions?

November 9, 2014
7:50 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Please check your cronlog output for any errors.

November 10, 2014
5:41 pm
Avatar
Judah
Member
Members
Forum Posts: 10
Member Since:
October 4, 2014
sp_UserOfflineSmall Offline

/usr/bin/php /home2/abcuser/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php AutoBackup.php

 

The above code worked! SmileSmile

 

Instead of mycustomconfig.php I replaced it with the name of the config file (AutoBackup.php) I created and the backups are now working! 

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