How to do a Wordpress CRON | 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
How to do a Wordpress CRON
September 19, 2013
12:23 pm
Avatar
Quest
New York
Member
Members
Forum Posts: 10
Member Since:
September 18, 2013
sp_UserOfflineSmall Offline

I've successfully got my manual backup running. Now, I'd like to set up a CRON job to run once a day. How is this done? I've visited the Administration > Configuration cron-tab and entered a filename. I don't see any options to set a frequency for the CRON job to execute. Am I missing something here?

September 19, 2013
4:12 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

To setup a cronjob, you need access to a cron scheduler usually provided by your hosting company, try and check with them on this. Ovidiu

September 20, 2013
11:16 am
Avatar
Quest
New York
Member
Members
Forum Posts: 10
Member Since:
September 18, 2013
sp_UserOfflineSmall Offline

Hey, I figured out how to set up a CRON job in WordPress. I have my backup settings all ready, saved in the CRON tab which I'm now able to call something like this:

 

wp_remote_get( 'http://mysite.com/lo.....' );

 

My options include splitting the archive at 1024MB and processing only 5 files at a time (this was the only way to get it to work). If I navigate to Actions > Generate Backup > Continue, then the job starts and will complete just fine making multiple TAR files. This will produce about 10 TAR files for me.

When I create a CRON job with these saved settings, it's only creating 1 TAR file which is almost 2GB. Am I missing something here? I navigated to the "myconfig.php" file and opened it up, and the "splitBackupSize" is indeed set to 1024.

So in short, the CRON is running, but it's not completing the whole backup. If I run it manually as mentioned above, a complete backup results. Any thoughts?

September 20, 2013
7:51 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

The split backup option only works in the manual mode throught the browser, the cron option is not yet implemented, so you would have to somehow exclude the larger folders to get the backup archive under 2Gb which is probably a file size limitation from your hosting.

 

Ovidiu

September 21, 2013
12:52 pm
Avatar
Quest
New York
Member
Members
Forum Posts: 10
Member Since:
September 18, 2013
sp_UserOfflineSmall Offline

I'm not sure my server has a file size limit, but check this out. Would my php.ini file settings be causing this issue?:

 

wp-admin\php.ini

This file only contains the following:
upload_max_filesize = 2000M;

post_max_size = 2000M

September 24, 2013
11:34 am
Avatar
Quest
New York
Member
Members
Forum Posts: 10
Member Since:
September 18, 2013
sp_UserOfflineSmall Offline

Hey Ovidiu,

 

Not sure if adding the split backup feature to the CRON section of XCloner is on your to-do list, but what would it take to get that done? Any donation possibly? I'd love to have that feature. It would make XCloner complete (in my opinion). I'd be willing to contribute! Please let me know as I need that functionality badly! Thanks.

 

~Quest~

November 5, 2013
2:38 pm
Avatar
Quest
New York
Member
Members
Forum Posts: 10
Member Since:
September 18, 2013
sp_UserOfflineSmall Offline

Any news on adding the Split Backup feature to the CRON section of XCloner? I've donated...

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
D: 21
Andy: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10052
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
ISIDORO ILARDO
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0