As far as I know there is no such option to skip home directory while generating cPanel backup. You will need to backup the home directory on destination server and restore it after restoring the account backup.

In case of large size accounts, I would suggest that you take home directory i.e public_html out of the account and then generate the cPanel backup. Once the backup will be generated, you can move the public_html back and rsycn it to destination server where you have the backup restored.

My home directories are big in size (more than 2GB). I am getting "xferstream tag failed" message when I start copying accounts. Thats why I thought of "rsync"ing home directory after transferring accounts.

Zishan, you're wrong. You can skip the homedir while pkgaccting, using the --skiphomedir option. I wanted to migrate all accounts from one server to another using this option so that it won't copy home dirs. I knew that this can be done using AllowOverride option in WHM Multiple accounts transfer section. However, in order to do this, we need to copy the actual pkgacct (as per cPanel docs, it's located at /usr/local/cpanel/Whostmgr/Pkgacct/pkgacct, but I couldn't find such file on my server) to /var/cpanel/lib/Whostmgr/Pkgacct/pkgacct.

However, I've found a way by copying the pkgacct file from the /script folder and modified it to skip homedir. The transfer is working fine now as I wanted it to work, using the AllowOverride option.

If you want to skip homedir while generating cPanel backup then you can use --skiphomedir option.

Code:

/scripts/pkgacct --skiphomedir USER

After creating the backups, move them to new server and restore. Once the accounts are restored on new server you can rsync the homedir from old server. Also note that "homedir" means /home/USER folder. You need to rsync this entire folder if backups were generated with --skiphomedir option.

Staff Member

Does anyone know how can we disable home dir sync while transferring accounts via WHM?.

Click to expand...

This is not possible at the moment. I have opened an enhancement request and spoken with our developers concerning this, and they are currently reviewing options for implementing this feature in forthcoming builds.

In the meantime, you will need to manually package and transfer any accounts that you wish to skip the home directory for.