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.

Problem getting cpbackup to exclude symlink folders

Discussion in 'Data Protection' started by bmett, Jul 24, 2013.

  1. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    Hi cPanel team,

    I've spent quite some time now to figure this one out without success. Following scenario:

    One account on the server has 3 folders in the root directory of the account:

    Code:
    /home/accname/symlink1
    /home/accname/symlink2
    /home/accname/symlink3
    All 3 folders are symlinked to a very large folder structure (about 1TB in size). I need to exclude these 3 folders from cpbackup. If I don't do that, the backup process simply takes too long.

    I tried a local cpbackup-exclude.conf file like this:
    Code:
    symlink1
    symlink2
    symlink3
    No luck. As soon as I start the cpbackup manually with /scripts/cpbackup and trace the process I can see that cpbackup is already inside symlink1.

    I use the legacy backup, but tried the new backup as well. I also tried the global exclude file (like the local one above). No luck either.

    What am I doing wrong? The only thing that is different here from a standard scenario, is that the folders are symlinked. Could that have something todo with it?

    Hope someone can help.

    Cheers,

    EDIT: Forgot to mention: Incremental Backup is disabled
     
    #1 bmett, Jul 24, 2013
    Last edited: Jul 24, 2013
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    What is the exact path of your large 1 TB folder ? And have to tried to add that path in your cpbackup-exclude.conf file ?
     
  3. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    That's a nice idea. Will try that now. The exact path is actually a NFS mount ...

    I'll get back to you.

    Cheers!

    - - - Updated - - -

    Ok I have to apologise. I said in my initial post that the folders are symlinks.

    They are not. The are direct NFS mounts.

    Any idea on how to exclude those?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Feel free to open a support ticket so we can access your system and attempt to reproduce the behavior:

    Submit A Ticket

    Let us know the ticket number and we can update this thread with the outcome.

    Thank you.
     
  5. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    Hi Michael,

    I've now opened a ticket with you guys. Hope I get a solution :)

    Ticket No 4310043

    Cheers,
     
    #5 bmett, Aug 1, 2013
    Last edited by a moderator: Aug 5, 2013
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To update, it was determined that it's not possible to exclude symbolic links from backups if they are within the account's home directory. It was recommended that a feature request be opened for this:

    Submit A Feature Request

    Thank you.
     
Loading...

Share This Page