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.

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

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

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    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!
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
  3. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Awesome, thanks Tristan
     
  4. 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:
    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
     
Loading...

Share This Page