Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member Man0warr's Avatar
    Join Date
    Jun 2006
    Location
    Dallas, TX
    Posts
    54

    Default Dictating weekly cpbackup day?

    Is it possible to change what day the weekly cpbackup occurs? Did a few searches and couldn't find an answer.

    Thanks

  2. #2
    Member
    Join Date
    Apr 2005
    Posts
    39

    Default Backup


  3. #3
    Member Man0warr's Avatar
    Join Date
    Jun 2006
    Location
    Dallas, TX
    Posts
    54

    Default

    Thats similar but not really the problem, we just want to have the weekly backup happen on Sunday instead of Thursday.

  4. #4
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    You could just delete the weekly backups before the night you want them to be done. They will be done if there are none, and from that point on, it'll be the same day each week. You will need to delete the weekly directory as well.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  5. #5
    Member Man0warr's Avatar
    Join Date
    Jun 2006
    Location
    Dallas, TX
    Posts
    54

    Default

    Thank you, we will try that this weekend.

  6. #6
    Member Man0warr's Avatar
    Join Date
    Jun 2006
    Location
    Dallas, TX
    Posts
    54

    Default

    We deleted the old backup and the directory Saturday night to see if it would run early sunday morning, it didn't :/

  7. #7
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    You deleted the actual "weekly" directory as well?

    The key line in the backup script is:
    Code:
    if (! -e "${basedir}/weekly" || isolderthen(6,"${basedir}/weekly")) {
    If the "weekly" directory does not exist when the backup script is called, it should run the weekly backup, as long as WHM is set to do weekly backups.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  8. #8
    Member Man0warr's Avatar
    Join Date
    Jun 2006
    Location
    Dallas, TX
    Posts
    54

    Default

    We deleted weekly directory on the server stores the backups to via FTP, do we also need to delete the weekly directory in /home/cpbackuptmp/cpbackup/ ? I think it puts all the backups here first before FTPing them. That may be why it didn't run because the weekly was still there.

  9. #9
    Member Man0warr's Avatar
    Join Date
    Jun 2006
    Location
    Dallas, TX
    Posts
    54

    Default

    Well we deleted that folder and cpbackup weekly ran this morning, deleting the folder on the FTP server did nothing. Thanks PWS!

  10. #10
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    You got the right folder. Now all you have to do is restart it this Saturday night.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads & Tags
Similar threads

  1. Replies: 16
    Last Post: 04-11-2011, 12:37 PM
  2. How to set day for Monthly/Weekly backups?
    By nicklas in forum Data Protection
    Replies: 0
    Last Post: 11-21-2010, 10:49 AM
  3. Choose Day for Weekly Backup
    By mikelegg in forum Archived Feature Requests
    Replies: 2
    Last Post: 03-12-2010, 02:52 PM
  4. weekly/monthly backups to run a particular day
    By alexkb in forum Data Protection
    Replies: 1
    Last Post: 02-08-2010, 08:52 PM
  5. Pick a day for weekly backup
    By jamina1 in forum Data Protection
    Replies: 2
    Last Post: 01-14-2009, 01:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube