Where is the documentation about ~/.cpanel ~/.cpanm and ~/.cpobjcache

ITGabs

Well-Known Member
Jul 30, 2013
81
0
6
cPanel Access Level
Root Administrator
I want to know where is the documentation about

/root/.cpanel
/root/.cpanm
/root/.cpobjcache

some of these directories have many sub directories

all about backup and sync integration problems, not just curiosity

PD: some admin can correct the title should be 'where' not here
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Hello :)

These directories are not currently documented. The directories (except for /root/.cpanm which is used for Perl modules) include cached data (you can review the files in these directories to see the type of information that is stored). This data would not be required when restoring an account from a backup or when installing a fresh copy of cPanel/WHM. Could you elaborate on the specific backup/sync integration problems?

Thank you.
 

ITGabs

Well-Known Member
Jul 30, 2013
81
0
6
cPanel Access Level
Root Administrator
Hi Michael,

The problem that I had is located in ~/.cpanel/datastore/*
Apparently this folder is used like a log or cache for internal commands used by cPanel application and I am not sure if this files need to be keep it or not, or if they are created when they are needed, etc

The file names have special characters like ['"/\&$|:] that are kind complex to handle, the file names look like bash commands.

In an already installed cPanel (not a fresh one) What should be important to keep into the /root/ folder?

I tried it deleting the 3 folders but I saw a lot of problems in the syslog, I can't know exactly how this can be related since almost all the errors were about 'includes' , so I restored all the folders and file and the syslog returns to normal.


Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Out of curiosity, could you elaborate on your specific requirement to delete these files? The files should regenerate if removed, but I don't really see a reason to remove them.

Thank you.