cpanelsync's Exclude Functionality
For cPanel & WHM 11.30
Setting cPanel-distributed files to immutable will cause a variety of problems. If you wish to prevent cPanel from updating certain files, do not make the files immutable. Instead, enter those files' paths in
Each entry in the
file must use a fully specified path, with each path on its own line.
For example, if you wish to prevent the following files from updating:
Add the files' paths to
using the following 2 commands:
- echo "/usr/local/cpanel/usr/local/cpanel/scripts/pkgacct" >> /etc/cpanelsync.exclude
- echo "/usr/local/cpanel/Cpanel/Logd.pm" >> /etc/cpanelsync.exclude
This method only prevents the cpanelsync utility from updating files. It does not prevent updates that occur at application runtime. You cannot use
to prevent modifications to configuration files, datastores, or similar types of files.
Directories can be excluded.
Topic revision: r3 - 24 Aug 2012 - 13:12:08 - Main.StacyWyatt