The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Crontab for Daily Backups

Discussion in 'General Discussion' started by Ren, Nov 20, 2002.

  1. Ren

    Ren Member

    Joined:
    Jun 16, 2002
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hello, where would I be able to find the crontab file for the daily backups? Our server is backing up just a couple hours too early, and its running during our peak hours.

    Thanks.
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    /var/spool/cron/root

    see this thread
    http://forums.cpanel.net/read.php?TID=5407&page=1#23486
     
  3. ThunderHostingDotCom

    ThunderHostingDotCom Well-Known Member

    Joined:
    Nov 18, 2002
    Messages:
    450
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    All over!
    [quote:13e28007b9][i:13e28007b9]Originally posted by squirrel[/i:13e28007b9]

    /var/spool/cron/root

    see this thread
    http://forums.cpanel.net/read.php?TID=5407&page=1#23486[/quote:13e28007b9]


    Where can I find a list of vaild code to input into the cron file for the server to preform crons? I would like to create a cron that reboots our server on a weekly or even at a minimum of monthly basis. Any help is appreciated!
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    What the cronjob setting does is run a program or script. You would need a script to reboot, then set a cronjob to run it when you want it done. I think /scripts/reboot might be what you want but you may want to wait until we get a reply to verify or correct this first.
    If I'm correct about the script, this would give you a weekly reboot every Sunday at 5:30am.
    30 5 * * 0 /scripts/reboot
     
Loading...

Share This Page