If accounts are reportedly overlarge and is making issue for a user in moving the accounts with the WHM Transfers feature, one will move the accounts manually by working in as the root user. Below are the information that will be used in this review:
To a run the mkdir command:
this command is not in producing output. creates the user-temp directory inside the /home directory.
Settings of how cPanel & WHM create subdomain and addon domain directories can be changed. On the other hand, these directories may not exist on some servers in the cPanel account’s public_html directory. One will scan our Tweak Settings – Domains documentation to induce additional data on this subject.
The majority of the account’s space utilization happens inside its public_html directory. A user can thus reduce the size of the transfer by creating a compressed backup of the public_html directory and omit it from the transfer process.
To do this, a user should use this tar command:
tar cvzf /home/user-temp/user-backup.tar.gz /home/user/public_html
Making the use of this above command, the tar utility receives four arguments ( cvzf ) and two input variables ( /home/user-temp/user-backup.tar.gz and /home/user/public_html ).
To do this, a user should run the subsequent mv command:
mv /home/user/public_html /home/user-temp/
Keep in mind to never take away the public_html directory before the transfer completion. Also, attempt to maintain the duplicate of the public_html directory throughout the method to certainly revive the location if the method is unsuccessful in any way.
Large logs are generated by large websites. In order to economize the transfer time and space, try creating a compressed backup of these logs. The /usr/local/apache/domlogs directory will store the domain’s Apache weblogs.
To do this, run the following two commands:
tar -cvzf /home/user-temp/user-logs.tar.gz /usr/local/apache/domlogs/example.com
mv /usr/local/apache/domlogs/example.com /home/user-temp/
where the first command creates the compressed backup of the domain’s weblogs in the /home/user-temp/user-logs.tar.gz directory, and the other helps in moving the existing web log files to the temporary directory.
All valuable data on compressing public_html logs are outlined in this article review.