Cron settings | 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
Cron settings
December 1, 2010
2:16 pm
Avatar
Lariza
Member
Members
Forum Posts: 3
Member Since:
December 1, 2010
sp_UserOfflineSmall Offline

Hi,

I've been looking for information how to schedule backups and I don't get it.

I understand that I should make a crontab file, so I follow the instructions here: https://docs.xcloner.com/#/

"It can look like this:

15 11 1 3 1 /home/username/www/mycronjob.php "

But what is this mycronjob.php? I don't have anything in my configs/ -folder. Should I create mycronjob.php and what should it contain?

Thanks in advance.

December 1, 2010
3:33 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Hi there! For wordpress, the cron command would be

 

"php /home/.../wordpress_root/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php"

 

or

 

"php /home/.../wordpress_root/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php myconfig.php"

 

if you are using myconfig are saved cron config

 

So, for you, the crontab line would look like:

 

15 11 1 3 1 php /home/.../wordpress_root/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php mycronjob.php

 

Note that the "/home/.../wordpress_root/" path is the full server path to your wordpress root

 

Hope it helps! Ovidiu

December 1, 2010
3:51 pm
Avatar
Lariza
Member
Members
Forum Posts: 3
Member Since:
December 1, 2010
sp_UserOfflineSmall Offline

Great, thanks for your quick answer! Nice service you have. Laugh

Now thumbs up that I manage to create the crontab file... Smile

December 1, 2010
4:38 pm
Avatar
Lariza
Member
Members
Forum Posts: 3
Member Since:
December 1, 2010
sp_UserOfflineSmall Offline

BTW, there's a small typo in those instructions I believe. Here:

 

Option 2 – SSH or Telnet
1. Create your crontab file (as described above) in Notepad. Make
sure to have wordwrap turned off and press enter once (to create a
blank line after the cron job line).

2. Save the file as cron.txt.

3. Upload the file to your root directory.

4. Use SSH or Telnet software to connect to your server (PuTTY (http://www.putty.org) is a free open source SSH and Telnet client)

5. Type the following at the command prompt: crobtab cron.txt

 

The last line, shouldn't it be crontab cron.txt? Wink

December 1, 2010
4:42 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

You are right, thanks for noticing that, we will get it fixed

 

Ovidiu

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