Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    1

    Default How to cron job?

    Hi,

    I am a newbie with cpanel and cron jobs.
    i want to be able to set automatic database and backup files for my site every day or week or month.
    How do I do that? What is the cron job syntax for such a thing?
    thanks

  2. #2
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Are you an end user (cpanel only) or a server owner (cpanel / whm)?

  3. #3
    Registered User
    Join Date
    Sep 2009
    Location
    medusa
    Posts
    4

    Default

    I too, would like to know how to do this.

    every once in a while I'll backup my stuff, but I'd like it automated or scheduled for weekly or monthly.

    I'd guess I'm an end user (I'm pretty sure i only have cpanel (version 11.24.4-STABLE) because I've never seen the whm)

    I have no idea what a cron job is but I've been looking for automated backups and some people have mentioned scripts. (I got lost because I have no idea of how to install a script into cpanel)

    if you could shed some light on the matter, I'd greatly appreciate it.

    thanks,

  4. #4
    Registered User
    Join Date
    May 2010
    Posts
    1

    Default Also a newb, but a smart one (?)

    I also am new to cron jobs and would like to know how to schedule them.

    I am a WHM user.

    I am sending a job to
    /usr/bin/curl

    but I get error saying no such directory.

    I am sure it's something simple and I am just not sure what to do.

    Any advice would be appreciated, I know you are busy so thanks for your time.

  5. #5
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Does /usr/bin/curl exist?

    Type the following command:

    Code:
    # which curl
    You should see something like this:

    Code:
    # which curl
    /usr/bin/curl
    If the path returned is not /usr/bin/curl, then you will need to adjust the path in your cron job.

    If you see no output, then you need to install curl. On a Red Hat or CentOS server, /usr/bin/curl is provided by the curl RPM package, and you should be able to install it using yum:

    Code:
    # yum install curl
    Please note that the curl package that provides /usr/bin/curl is not related to the curl PHP extension that can be built into PHP using EasyApache. The RPM package provides the functionality from the command line prompt. The option in EasyApache builds it into PHP. The two are distinct.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

Similar Threads & Tags
Similar threads

  1. Cron Job Help Please...
    By mikka12 in forum New User Questions
    Replies: 5
    Last Post: 07-12-2010, 08:49 PM
  2. about cron job
    By persianwhois in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-14-2007, 08:28 AM
  3. cron job
    By albertldee in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-11-2003, 12:08 AM
  4. Cron Job
    By Dawson in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-13-2001, 07:06 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube