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!

Trouble with cpbackup-exclude.conf file.

Discussion in 'Data Protection' started by crazyfish, Jul 2, 2010.

  1. crazyfish

    crazyfish Member

    Joined:
    Oct 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    51
    I have a few sites that the data never changes so I wanted to remove them from my daily backups as I already have an offsite copy but when I add the path to the cpbackup-exclude.conf it only skips the last entry in the file and backups all the other folders. Am I entering the paths wrong? I have 1 entry per line.

    skipthisfolder
    skipthisfolder2
    skipthisfolder3
     
    #1 crazyfish, Jul 2, 2010
    Last edited: Jul 2, 2010
  2. Miraenda

    Miraenda Well-Known Member

    Joined:
    Jul 28, 2004
    Messages:
    243
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Coralville, Iowa USA
    cPanel Access Level:
    Root Administrator
    Which cpbackup-exclude.conf file are you editing? The one at /etc/cpbackup-exclude.conf or another one?

    For the path, are you providing the full path to the account with a wildcard so something like this:

    /home/user1/*
    /home/user2/*
    /home/user3/*

    You can also uncheck those accounts in WHM > Backup > Configure Backup > Select Specific Users "Select >>" button area. It should then no longer back up those users.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. crazyfish

    crazyfish Member

    Joined:
    Oct 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    51
    I was editing the one in my home directory (/home/username/cpbackup-exclude.conf). This account has other sites I want backed up so I don't want to simply remove the whole user from the backups.

    Guess I should try the /etc/cpbackup-exclude.conf file?
     
  4. Miraenda

    Miraenda Well-Known Member

    Joined:
    Jul 28, 2004
    Messages:
    243
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Coralville, Iowa USA
    cPanel Access Level:
    Root Administrator
    Yes, I would suggest trying the one in /etc/cpbackup-exclude.conf and using wildcards (*) for the contents of the folder itself in the path, so /home/user/public_html/folder/* and so on.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. crazyfish

    crazyfish Member

    Joined:
    Oct 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    51
    That didn't work at all. Every directory I listed got backed up.

    /home/user/dir1/*
    /home/user/dir2/*
    /home/user/dir3/*
     
  6. Miraenda

    Miraenda Well-Known Member

    Joined:
    Jul 28, 2004
    Messages:
    243
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Coralville, Iowa USA
    cPanel Access Level:
    Root Administrator
    I'd suggest opening up a ticket with cPanel technical support at that point via WHM > Support Center > Contact cPanel area.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. crazyfish

    crazyfish Member

    Joined:
    Oct 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    51
    Figured I would update this since the problem has been fixed.

    My VPS host contacted cPanel and they corrected the issue, whatever it was, they didn't say.

    They used the /home/username/cpbackup-exclude.conf file and the format was:

    skipthisfolder
    skipthisfolder2
    skipthisfolder3
     
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