Page tree
Skip to end of metadata
Go to start of metadata

For cPanel & WHM version 11.52


You can use the /scripts/pkgacct script to create a cpmove archive for an account. After you create the cpmove archive, you can transfer the account between servers.

The /scripts/pkgacct script

To use this script, run the following command as the root user:

/scripts/pkgacct [arguments] username destination


  • In this example, username represents the username of the cPanel account for which you wish to create a cpmove  archive
    • This value is required unless you also use the --bincheck argument. 
    • Pass this value after any arguments and before the destination path.
  • In this example, desintation represents the path to the directory in which you wish to store the cpmove  archive. 
    • This value is optional
    • You must pass this value after the username.



The /scripts/pkgacct script accepts the following arguments:


Use the instructions in the /var/cpanel/lib/Whostmgr/Pkgacct/pkgacct file, if any are present.


Pass this argument before any other arguments (in the  0th  position). 


Ensure that any of the scripts that the cPanel binary calls will run. If the script runs successfully, it prints 'BinCheck ok'


If you pass this argument, do not pass a username. 


Specify the archive version to create.

For more information, read the How to use the --version and --mysql arguments section below.


Specify the version of MySQL® that the account's databases use.

For more information, read the How to use the --version and --mysql arguments section below.


Convert the most recent backup into a cpmove archive. This option speeds the process but may result in lost or old data.


Exclude the user's home directory from the archive. If you plan to transfer the account, you can use a faster protocol to move the home directory.


Only include information in the new archive that the previous archive did not contain. If you pass this argument and the system does not find a cpmove archive, the script will fail.


Create the cpmove archive in chunks. This argument reduces the overall load on the system.


Do not compress the cpmove archive.


Override the --nocompress argument if it is present. 


The /scripts/pkgacct script compresses archives by default. 


Exclude the account's databases from the cpmove archive.


Allow the user to use the cpmove archive as a backup for the account.


Pass this argument to use the cpmove archive as a backup for the account.


  • If you pass this argument, you must pass a destination.
  • This argument creates the username.tar.gz file, where username represents the account's username.


How to use the --version and --mysql arguments

To use the /scripts/pkgacct script's --version and --mysql arguments, enter a space between the argument and the value that you wish to pass to it.

For example, to specify MySQL version 5.5.11 and the second version of the cpmove archive, run the following command:

/scripts/pkgacct --version 2 --mysql 5.5.11 username