how can i disable gzip -c in backup?

Jedia

Well-Known Member
Mar 18, 2004
200
0
166
CN
hello everyone, how can i disable gzip -c when user backup in Cpanel?
gzip -c make too hight CPU load for my server.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
34
473
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
 

StevenC

Well-Known Member
Jan 1, 2004
252
0
166
Originally posted by chirpy

1. Everytime you upgrade cPanel you'll have to make the change again

not if you chattr +i it
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
34
473
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.
 
Last edited:

Jedia

Well-Known Member
Mar 18, 2004
200
0
166
CN
hello chirpy, i can't find any "-c" in /scripts/cpbackup
could you write down how to do, please?