Transfer without the tmp folder

shimmy

Active Member
Nov 13, 2002
25
0
151
Hi,

I'm going to transfer like a hundred accounts to a new server. A lot of the sites have stats going all the way back to the year 2002 that are taking a lot of space. I don't need stats from 2002. So, is there a way to to not include the $HOME/$USER/tmp for all the accounts during the WHM to WHM transfer, since that's where all the stats files are.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,914
2,200
363
Hello :)

You could exclude certain data from each account's tmp directory by utilizing the /etc/cpbackup-exclude.conf file. It's usage is documented at:

Excluding Files from Backup

This would require you to backup the accounts, then transfer the backup archives to the destination server for restoration.

Thank you.
 

shimmy

Active Member
Nov 13, 2002
25
0
151
Great! is there a setting on the new server to make it only save stats for 1 or 2 years instead of 20 years?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,914
2,200
363
There are no native features with cPanel/WHM that will automatically delete aged data from your statistics applications, but you are welcome to open a feature request for this via:

Submit A Feature Request

Thank you.