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.

Use bz2 for backups instead of gz

Discussion in 'General Discussion' started by unamigo, Jun 25, 2005.

  1. unamigo

    unamigo Member

    Joined:
    Apr 28, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Is it possible to change the compressor/decompressor for backups, so it uses bz2 compression instead of the old gz?
     
  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
    You'd have to take copies of all the scripts that hang off of /scripts/cpbackup and modify them all to use your new method. You'd then also need to modify all the restore scripts too. It's also possible that it's hardcoded into the WHM binary, for which you're out of luck.

    In otherwords, not easily.
     
  3. unamigo

    unamigo Member

    Joined:
    Apr 28, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Yeah, I supposed that, It'd be great to have a config file with this setting.
    Thanks anyway :)
     
  4. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
    wondering this myself ..it would be nice to have a check box

    gz
    bz2
    no - comp - tar only

    not sure which would be less processor intensive but for some people it would make sense to at least offer the choices.
     
  5. netwrkr

    netwrkr Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    I've found bz2 to be quite processor intensive both on the compress and uncompress for a marginal decrease in size over gzip.

    Tom
     
Loading...

Share This Page