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 no compress question

Discussion in 'Data Protection' started by iso99, Mar 6, 2016.

  1. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    112
    Likes Received:
    7
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Afaik, using no-compress option in pkgacct still produces a .tar archive.
    Will compressing it manually yield a similar full cPanel backup file?

    I'm just checking if the contents of --no-compress and without it are similar.
     
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    720
    Likes Received:
    123
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    With compression:

    cpmove-user.tar.gz

    Without compression

    cpmove-user.tar

    The backup structure stays exactly the same, just the 'x' option is not used when using tar, so the backup size will be bigger but may save you some CPU usage if that is your concern.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,468
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    No, you are likely to see a size difference. For example, here's the size difference of a test account, one with the "--no-compress" flag (.tar), and one without the "--no-compress" flag (.tar.gz):

    Code:
    # du -sh cpmove*
    1.9M    cpmove-cptest01.tar
    620K    cpmove-cptest01.tar.gz
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    112
    Likes Received:
    7
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Yup, CPU and IO is actually my concern but wrapping them in LVE is a better idea, even with compression. It took 2 hours though for an 8gb account to be packaged.

    Additional question, where is the file configuration for the Backup WHM (not the legacy) user exclusion? Is this the only file that cPanel checks to see if an account will be excluded for the scheduled backups?

    Thanks!
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,468
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    The backup account exclusion setting is stored in the account's cPanel user file:

    Code:
    root@server [~]# grep BACKUP /var/cpanel/users/cptest01
    BACKUP=1
    LEGACY_BACKUP=1
    Setting the values to 0 will disable backups for that account.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    112
    Likes Received:
    7
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Thanks!

    If I edit this file and changed BACKUP=0, should I run /usr/local/cpanel/scripts/updateuserdomains?

    Can I run this right I edit after several files, instead of per user edit?
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,468
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, that command rebuilds the cache. You can run it after editing multiple zones.

    Thank you.
     
    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