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!

Can I block part of a site from being backed up?

Discussion in 'General Discussion' started by WebHostPro, Jun 12, 2009.

  1. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,660
    Likes Received:
    16
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    I use the incremental back up system from cpanel, but we do not need two of the folders to be backed up. Is there a way in the config to block backing up certain folders? I have root access.

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. serversignature

    serversignature Well-Known Member

    Joined:
    Nov 26, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Bangalore
    Try the following.

    Create cpbackup-exclude.conf in the user's home directory (/home/user-id) to exclude files from a cPanel backup. Only used if you make a complete site back up from cPanel. Each item to skip must be on it’s only line in the file. Directories should not have a trailing slash. Each entry must have the full path to the file or directory.

    Also there is rsync '--exclude' option
     
    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,660
    Likes Received:
    16
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    Awesome, thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. serversignature

    serversignature Well-Known Member

    Joined:
    Nov 26, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Bangalore
    Thanks,


    ..
     
    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