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!

cpbackup-exclude.conf working?

Discussion in 'Data Protection' started by Smith Nevil, Mar 30, 2019.

  1. Smith Nevil

    Smith Nevil Registered

    Joined:
    Oct 17, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    This is the entry in /etc/cpbackup-exclude.conf

    Code:
    cat /etc/cpbackup-exclude.conf
    */.wysiwygPro_*
    */core.[0-9]*
    .MirrorSearch
    .cagefs*
    .cpan
    .cpanel/caches
    .cpanel/datastore
    .cpcpan
    .sqmailattach
    access-logs
    
    And I see this in the script /scripts/pkgacct
    Code:
            # means we've already excluded the stuff it replaces from the
    
                if ( $isbackup || $isuserbackup ) { Cpanel::SafeSync::build_cpbackup_exclude_conf( $homedir, $user ); }
                "$homedir/cpbackup-exclude.conf",
                $Cpanel::SafeSync::global_exclude
    

    Whenever I take backups I can see the excluded directories in the backup. for example ".cpanel/caches"


    Code:
    tar -tf /home/cpmove-xxx.tar.gz | grep ".cpanel/caches"
    cpmove-xxx/homedir/.cpanel/caches/
    cpmove-xxx/homedir/.cpanel/caches/filesys/
    cpmove-xxx/homedir/.cpanel/caches/filesys/~
    cpmove-xxx/homedir/.cpanel/caches/filesys/~.stat
    cpmove-xxx/homedir/.cpanel/caches/filesys/~home~xxx
    cpmove-xxx/homedir/.cpanel/caches/filesys/~home~xxx.stat
    cpmove-xxx/homedir/.cpanel/caches/ns_cache_net
    cpmove-xxx/homedir/.cpanel/caches/dynamicui/
    cpmove-xxx/homedir/.cpanel/caches/dynamicui/paper_lantern_en_.cache
    cpmove-xxx/homedir/.cpanel/caches/config/
    cpmove-xxx/homedir/.cpanel/caches/config/_etc_cpanel_ea4_paths.conf___default_equal_space_seperated_config
    cpmove-xxx/homedir/.cpanel/caches/statcache_persistant
    cpmove-xxx/homedir/.cpanel/caches/user_manager/
    cpmove-xxx/homedir/.cpanel/caches/rewriteinfo
    


     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,124
    Likes Received:
    473
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Smith Nevil

    It looks as though you're testing this with pkgacct which does not respect the exclude files.

    Please take a look at the documentation here: How to Exclude Files From Backups - cPanel Knowledge Base - cPanel Documentation

    The following notes go over this:

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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