/scripts/pkgacct packages everything needed to restore the account in its current state. This includes the home directory, database(s), DNS zone(s), users file, and other data. pkgacct packages all of this into a .tar.gz archive.
The .tar.gz archive can then be restored using /scripts/restorepkg. An account can be completely deleted from the server, and restored fully using the .tar.gz archive created by pkgacct.
You can see for yourself what is included in the package created by running /scripts/pkgacct on an account. You can then expand the archive to see everything that was put into the archive:
Code:
# /scripts/pkgacct youraccount
# mkdir atmpdir
# cd atmpdir
# tar zxvf /home/cpmove-youraccount.tar.gz
# cd youraccount
# ls -alh
/scripts/pkgacct creates the archive with the filename "cpmove-youraccount.tar.gz", where "youraccount" is the actual cPanel account name. It will not be "your account"; it will be the actual account name, but it will have "cpmove-" in front of it and ".tar.gz" after it. Normally, the cpmove file is written to /home. To restore an account package using /scripts/restorepkg, place it in /home or /root.