Problem getting cpbackup to exclude symlink folders

bmett

Well-Known Member
Aug 5, 2010
71
1
56
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
 
Last edited:

bmett

Well-Known Member
Aug 5, 2010
71
1
56
Brisbane, AU
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 ?
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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?
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.
 

bmett

Well-Known Member
Aug 5, 2010
71
1
56
Brisbane, AU
Hi Michael,

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

Ticket No 4310043

Cheers,
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
I've now opened a ticket with you guys. Hope I get a solution :)

Ticket No 4310043
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.
 

sargearmstrong

Registered
Aug 19, 2014
1
0
51
cPanel Access Level
Root Administrator
This seems to still be the case, hard to believe though.

Any suggestions for excluding 10TB storage mount points from user home directory backups?
Specifying the folder and sda/path, in both the users' exclude and etc/exclude file have no impact. Oye!

Would be thrilled if anybody has suggestion. Thanks!