The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Specifying a destination target for pkgacct

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

  1. shijoe

    shijoe Member

    Joined:
    Dec 4, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    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

    Joined:
    Aug 10, 2002
    Messages:
    1,383
    Likes Received:
    23
    Trophy Points:
    38
    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
     
Loading...

Share This Page