Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Weekly e Monthly backup

Discussion in 'General Discussion' started by adapter, Nov 21, 2005.

  1. adapter

    adapter Well-Known Member
    PartnerNOC

    Joined:
    Sep 17, 2003
    Messages:
    391
    Likes Received:
    0
    Trophy Points:
    166
    Hello,

    how can i set the weekly and monthly backup to run on sunday? it run evry time on monday

    thankyou
     
  2. Zaf

    Zaf Well-Known Member

    Joined:
    Aug 22, 2005
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    166
    Edit your cronjobs which call the backup script and make them look like the following.

    For weekly backup at 06:05am on each Sunday:
    5 7 * * 0 /path/to/backup/script
    OR
    5 7 * * 7 /path/to/backup/script
    0 and 7 are considered as Sunday afaik :)

    For monthly backups (if you like them on the first Sunday of the month)
    5 5 1-7/1 * 0 /path/to/backup/script

    Note: I have not tried this out personally, but dont think it will fail you either. Do let me know whether it worked for you :)
     
  3. adapter

    adapter Well-Known Member
    PartnerNOC

    Joined:
    Sep 17, 2003
    Messages:
    391
    Likes Received:
    0
    Trophy Points:
    166
    umm sorry but in my cron i have only

    0 1 * * * /scripts/cpbackup

    so i think that the weekly and monthly backup is schedule inside the script and not in the cron
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice