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!

Where do you set "ignore" varibles for incramental backup?

Discussion in 'Data Protection' started by WebHostPro, Oct 26, 2010.

  1. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,654
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    I use daily incremental backups but some files I need to ignore like old spam ect.. Where do I put the ignore file and what is the name for this so cpanel's incremental backup will ignore what I put in the file?

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If the file is not on a set account but the global server, you can set the files and folders in /etc/cpbackup-exclude.conf file. Otherwise, you can put or create the file in /home/username/cpbackup-exclude.conf for files and folders on individual accounts. Wildcards can be used in the file or folder name or path.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,654
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    Awesome, thanks Tristan
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,554
    Likes Received:
    9
    Trophy Points:
    168
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Adding to what cPanelTristan has mentioned, we have the following documentation that details usage of the described feature: Excluding Files from Backup Using cpbackup-exclude.conf

    During testing I found the following entries will exclude the ".Junk", ".spam", and ".Trash" directories within an e-mail account; via IMAP the folders may appear simply as "Junk", "spam", and "Trash", but on the filesystem they are prefixed with a period:
    Code:
    # cat ~user/cpbackup-exclude.conf
    */.Junk
    */.spam
    */.Trash
     
    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