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.

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:
    16
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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
     
  3. StevenC

    StevenC Well-Known Member

    Joined:
    Jan 1, 2004
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16

    not if you chattr +i it
     
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Then it never gets updated, which means you may not get some enhancements (if any).
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
    #5 chirpy, May 30, 2004
    Last edited: May 30, 2004
  6. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    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.
     
  7. Jedia

    Jedia Well-Known Member

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

    Jedia Well-Known Member

    Joined:
    Mar 18, 2004
    Messages:
    200
    Likes Received:
    0
    Trophy Points:
    16
    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