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.

[case 45011,45028] 11.28 full backup is not a full backup: excludes files named core

Discussion in 'Data Protection' started by MironJ, Nov 24, 2010.

  1. MironJ

    MironJ Active Member

    Joined:
    Dec 9, 2009
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi,

    When I manually run full backup via cPanel or automatically via daily cron backup, some files/folders are not copied to the backup folder/archive.

    ~~~~~~~~~~~~~~~~~
    Skipping public_html/g2data/cache/module/core
    Skipping public_html/modules/core
    Skipping public_html/app/code/core
    Skipping public_html/app/design/frontend/default/mvz/template/core
    Skipping public_html/app/design/frontend/default/default/template/core
    Skipping public_html/plugins/editors/ckeditor/ckfinder/core
    ~~~~~~~~~~~~~~~~~

    So, most web sites will not work after I do a full backup restore or move&restore full backup on the another server.

    Where I can setup server wide for all accounts to not skip folders with name "core"?


    Regards,
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Is "core" the entire name of each directory or file being skipped, or are there any other letters, numbers, or other characters in the names?

    Check the contents of "/etc/cpbackup-exclude.conf":
    Code:
    # cat /etc/cpbackup-exclude.conf
    Look for a single entry containing the following:
    Code:
    */core
    If you see a line containing only "*/core" try removing only that entry, then generate a fresh backup to verify the results. You may, optionally, force cpbackup to run using the following command; this should update your daily incremental backups:
    Code:
    # /scripts/cpbackup --force
    The "*/core" entry exists for backwards compatibility with older Linux distributions using Kernel version 2.4 and older, where the default name of a core (memory) dump file is just "core" without an appended process ID (PID).
     
    #2 cPanelDon, Nov 25, 2010
    Last edited: Nov 25, 2010
  3. MironJ

    MironJ Active Member

    Joined:
    Dec 9, 2009
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    It's just a directory name, without any other letters, numbers or any other characters.
    Many new Joomla components and modules are using directory name "core".

    Done that, I will wait for the next backup run.
    Will leave more info tommorow after i see a backup log.
     
  4. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    We are discussing the potential removal of this default exclude in case 45011.

    Thank you.
     
  5. MironJ

    MironJ Active Member

    Joined:
    Dec 9, 2009
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi,

    Just to confirm that after removing "*/core" entry from the file "/etc/cpbackup-exclude.conf" backup archive is finally full.

    Thanks,
    Miron
     
  6. VeZoZ

    VeZoZ Well-Known Member

    Joined:
    Dec 14, 2002
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    We hope this will be removed as looking at the code it seems silly:


    Code:
    */core
    */core.[0-9]
    */core.[0-9]*
    */core.[0-9][0-9]
    

    I assume it's attempting to deal with core dumps. Considering it would be core.[0-9] for a dump doing it for literally files and folders named "core" seems lazy.
     
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Some systems name(d) their core dumps core.
     
  8. VeZoZ

    VeZoZ Well-Known Member

    Joined:
    Dec 14, 2002
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider

    My mistake forgot about 2.4 kernels haven't ran those in ages.
     
  9. txspaderz

    txspaderz Active Member
    PartnerNOC

    Joined:
    Jun 4, 2008
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    If this is for core dumps only, I suggest fixing the regex.

    Use this, or something like it:

    Code:
    core\.?[0-9]*$
    I use this daily, and I have yet to have it match something that is NOT a core dump.
     
  10. TheSidewinder

    TheSidewinder Active Member

    Joined:
    Jul 18, 2009
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    I can confirm that cpbackup's default config does exclude any directory named 'core'.

    IP.Board forum software has a directory of that name under it's ./admin/applications/ directory.

    Fortunately, there are no files in that directory that are ever changed, so if you simply upload the contents of that directory from the software's ZIP file (of the same version) you'll get back on line.

    I've removed the line, referenced above, from my /etc/cpbackup-exclude.conf file, and will check the backups after they next run.
     
  11. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    #11 cPanelKenneth, Dec 2, 2010
    Last edited: Dec 2, 2010
  12. TheSidewinder

    TheSidewinder Active Member

    Joined:
    Jul 18, 2009
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Just to followup.....

    Removing or commenting out that line resolved the issue.
     
  13. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Re: [case 45011,45028] 11.28 full backup is not a full backup: excludes files named c

    Both Cases 45011 and 45028 are addressed in 11.28.56. To see if your update tier is yet at this version (or later), visit Downloads - cPanel Inc.
     
Loading...

Share This Page