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.

Backup question

Discussion in 'Data Protection' started by ljesh, Jan 17, 2009.

  1. ljesh

    ljesh Well-Known Member

    Joined:
    Aug 2, 2008
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    I have enabled daily (every day) weekly and monthly backups.
    I cannot understand if I restore weekly backup, will it restore to one week from today or specific day of the week?
    The same goes for monthly backups... one month from today (17.12.2008) or some specific date?
    Can someone explain please?
     
  2. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Every time cpbackup is run (which is actually daily, even if backups are disabled, if backups are disabled it doesn't do anything) it checks to see if the weekly directory is older than 6 days and if it is then it copies the daily backup directory to the weekly backup directory. If the monthly backup folder is older than 29 days, it does the same thing with weekly backups.

    However, because it uses timestamps on these directories then can cause problems if you restore a backup from the weekly and monthly backup repository. See the bug at:

    http://bugzilla.cpanel.net/show_bug.cgi?id=3829
     
  3. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Thanks for the heads up about the directory timestamp bug. I have submitted a short comment, and used one of my votes toward it.

    BTW, did you see we now have 10 votes instead of 5? I always struggled with this, since there are enough bugs that warrant my 5 votes. Now I can spread the wealth. :D

    - Scott
     
  4. fazil

    fazil Registered

    Joined:
    Apr 23, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thank you sparek-3.. that was really informative...
     
  5. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    And this is one of those things that bugs me...

    The 'weekly' backup isn't always a week old.... it could be a day older than the daily, so that your 'weekly' backup is really only 'the day before' backup.

    Hence the need for rotation scripts and blah blah blah... :p
     
  6. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    I've done a rotation script here, which will rotate the last N copies of daily, weekly, and monthly as requested ... works by putting a short script into postcpbackup, you can use a config file or edit the script to change rotation times:

    http://forums.cpanel.net/showpost.php?p=478685&postcount=10

    Please make any comments there on how you find it, etc, happy to fix any problems ...
     
Loading...

Share This Page