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!

how can i disable gzip -c in backup?

Discussion in 'General Discussion' started by Jedia, May 30, 2004.

  1. Jedia

    Jedia Well-Known Member

    Joined:
    Mar 18, 2004
    Messages:
    200
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    CN
    hello everyone, how can i disable gzip -c when user backup in Cpanel?
    gzip -c make too hight CPU load for my server.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    I guess you edit /scripts/cpbackups

    Several problems with that though:

    1. Everytime you upgrade cPanel you'll have to make the change again
    2. You won't be able to perform a restore using WHM, you'll have to do restores manually from the root shell
    3. Your backups will be immense in size because nearly all the files will likely be text which gzip compresses greatly
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. StevenC

    StevenC Well-Known Member

    Joined:
    Jan 1, 2004
    Messages:
    252
    Likes Received:
    0
    Trophy Points:
    166

    not if you chattr +i it
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    193
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Then it never gets updated, which means you may not get some enhancements (if any).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    As dgbaker points out,

    chattr +i is a very dangerous command and should never be used lightly. If you do that on any cPanel specific file you could easily open yourself up to exploits and bugs in the future that would have been fixed after an upgrade had you left well alone. It's much better to modify the file and keep a check on it after upgrades and then apply a diff file to patch it again.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #5 chirpy, May 30, 2004
    Last edited: May 30, 2004
  6. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    193
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    There is a script which can monitor the file and help when it gets changed. You get the script by squirrel over on our forum in the HowTo area.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Jedia

    Jedia Well-Known Member

    Joined:
    Mar 18, 2004
    Messages:
    200
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    CN
    Thanks :p
     
  8. Jedia

    Jedia Well-Known Member

    Joined:
    Mar 18, 2004
    Messages:
    200
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    CN
    hello chirpy, i can't find any "-c" in /scripts/cpbackup
    could you write down how to do, please?
     
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