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!

pkgacct override tar

Discussion in 'Data Protection' started by speckados, Feb 19, 2015.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    315
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi.

    I need override tar archive on

    Code:
    /usr/local/cpanel/scripts/pkgacct --skiphomedir --nocompress --backup $user $destination
    I see a this:

    But /var/cpanel/lib/Whostmgr/Pkgacct/ not exists, and not see any doc about how to override anything.

    Apreciate help.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can find instructions on this on the following thread:

    How to use migrations override script

    However, could you elaborate on what you need to change with the Pkgacct script?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    315
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    On ost i says.

    I need OVERRIDE tar process (not tar copy structure) when use /usr/local/cpanel/scripts/pkgacct --skiphomedir --nocompress --backup $user $destination

    This crea a tar file.

    I like not tar, I like only user_backupdir/ BEFORE tar processs

    Apreciate help.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    The "--nocompress" flag still combines the files, despite not compressing them. It's not possible to alter the pkgacct script to change this behavior. You will need to manually extract the archive after the pkgacct process completes if you want them extracted. Or, you could develop a custom script that extracts the archive and implement it with a pkgacct script hook:

    Guide to Standardized Hooks - PkgAcct Functions

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    315
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    A lot of thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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