Remove Home Directory From Fullbackup Destination

httpdocs

Well-Known Member
Mar 9, 2018
59
9
83
United States
cPanel Access Level
Root Administrator
hello
i need to remove only home directory from Backup Destination in cPanel account.
I don't want cPanel Users back up Files at home directory.But the other options don't matter. (FTP,SCP...)
This may be?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,255
313
Houston

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,255
313
Houston
@cPanelLauren
I think he wants to prevent cPanel users from saving backups in the home directory.
Ahh thanks for the clarification @quietFinn. While that documentation does allow for exclusions per user - it'd be for automated backups only and they'd be able to modify it.

If that's the case, there's not a way to do this natively within cPanel but you could create a script that removes .tar.gz files from /home/ and add it as a cron with the root user, though the danger of this would be that it will remove anything with that file extension.