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.

Transferring sites without the use of gzip

Discussion in 'General Discussion' started by rmj, Feb 14, 2006.

  1. rmj

    rmj Member

    Joined:
    Feb 20, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    We are faced with an issue of an overloaded server (we inherited so don't flame! hehe)

    We are wanting to move accounts from this server to another for obvious reasons. We have also been faced with similar situations before, and have concluded the following.

    For us, bandwidth is cheaper than resources. We'd prefer an option to where we can package/transfer sites without the use of gzip. This would cause less load on the aforementioned server.

    Has anyone hacked up pkgacct and restorepkg to do this?

    I have put in a bugzilla about this a while back, but i forgot the number (my own fault, ill find it again) and was wondering what cPanels stance on this was as well.

    Thanks in advance.
     
  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
    Could be tricky. The easy part is removing the gzip options from the tar command(s) in /scripts/pkgacct in the section:

    print "Creating Archive ....";

    The problem is that the restore is done through the closed-source WHM binary which will expect a gzipped tarball at the other end. What you could conceivably do is to modify pkgacct to create a non-gzipped tarball (i.e. a .tar file) then copy that to the new server and gzip it into a tar.gz file and then restorepkg it.

    Other than that, you're possibly in cPanel's hands through bugzilla.
     
  3. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    How about making the backup incremental and tarballing it yourself with a script?
     
Loading...

Share This Page