Specifying a destination target for pkgacct

shijoe

Member
Dec 4, 2004
10
0
151
Hello,

We have a situation where we need to copy over 11+ GB of account to another server and we have only 7 GB /home on our drive as free.

I understand that pkgacct script will create the archive in /home. Is there any way where we could specify another location as the target ?

Thanks in advance.
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
You are between a rock and a hard spot. Either way you will need twice the space available of the account as any pkgacct sequence will cp all the files to a temp directory.

Perhaps you could manually tar / gz most of the bulk user directories / files by hand and shove them on the remote server and delete them locally to gain space. Don't forget to md5check to be sure nothing is corrupt.

When you have things reduced enough, then pkgacct the account normally and shove that to the other server. Create the account and unpack your previous archives and off ya go.


One other option, If you have enough room for a home2 directory on another local drive that has sufficient room, you could simple move the account to that partition and pack it as normal.
 

sparek-3

Well-Known Member
Aug 10, 2002
2,021
227
368
cPanel Access Level
Root Administrator
The second parameter to pkgacct specifies the target, where the account is copied to and where the subsequent tar.gz is placed.

/scripts/pkgacct user /backup

This would create a cpmove files for the user user in the directory /backup