Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Specifying a destination target for pkgacct

Discussion in 'General Discussion' started by shijoe, Mar 29, 2007.

  1. shijoe

    shijoe Member

    Dec 4, 2004
    Likes Received:
    Trophy Points:

    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.
  2. jayh38

    jayh38 Well-Known Member

    Mar 3, 2006
    Likes Received:
    Trophy Points:
    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.
  3. sparek-3

    sparek-3 Well-Known Member

    Aug 10, 2002
    Likes Received:
    Trophy Points:
    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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice