Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2010
    Location
    GDL MX
    Posts
    2

    Default How to schedule backups

    Hello:

    Do you know how to schedule backup generation at specifc hour...

    For example: I need that script backup generation starts at Oct 22th 17:00 and backups will be saved in folder /backup/cpbackups/daily/

    Or do you know hos to start the script via SSH?

    I really apreciate your help.

    Thanks in advance!

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    You could edit crontab -e in root SSH and change the cron time:

    Code:
    0 17 * * * /scripts/cpbackup
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Registered User
    Join Date
    Oct 2010
    Location
    GDL MX
    Posts
    2

    Default

    Thanks a lot Tristan:

    I needed to check and modify too, file /etc/cpbackup.conf

    file was configured like this:

    Code:
    BACKUP2 yes
    BACKUPACCTS yes
    BACKUPCHECK yes
    BACKUPDAYS 0
    BACKUPDIR /backups
    BACKUPENABLE yes
    BACKUPFILES yes
    BACKUPFTPDIR
    BACKUPFTPHOST
    BACKUPFTPPASSIVE yes
    BACKUPFTPUSER
    BACKUPINC yes
    BACKUPINT daily
    BACKUPLOGS no
    BACKUPMOUNT no
    BACKUPRETDAILY 1
    BACKUPRETMONTHLY 1
    BACKUPRETWEEKLY 1
    BACKUPTYPE normal
    COMPRESSACCTS yes
    DIEIFNOTMOUNTED no
    GZIPRSYNCOPTS --rsyncable
    MYSQLBACKUP both
    but i change BACKUPDAYS 0 by BACKUPDAYS 5 (0 = Sunday)

    or can be force the script /scripts/cpbackup --force

    Anyway very helpful

Similar Threads & Tags
Similar threads

  1. Change Schedule Time for Backups
    By vittox in forum Data Protection
    Replies: 1
    Last Post: 02-07-2011, 12:19 PM
  2. How to schedule backups to be restore every few hours
    By Atrex in forum Data Protection
    Replies: 1
    Last Post: 09-02-2009, 12:16 PM
  3. Schedule for backups
    By Earendil in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-08-2005, 11:36 AM
  4. How to schedule what time backups and stats run?
    By flamesburn in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-28-2005, 06:56 PM
  5. How do i use Chron to schedule backups?
    By talon39 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-24-2004, 03:59 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube