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.

pkgacct override tar

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

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: 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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: 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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    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.
     
  5. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
Loading...

Share This Page