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.

tar.gz

Discussion in 'General Discussion' started by FreeFox, Mar 24, 2004.

  1. FreeFox

    FreeFox Member

    Joined:
    Aug 25, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    H All,

    We hosted new client web site, and he is upload via FTP his backup ( backup.tar.gz )

    Now, we want to unzip the backup ( tar -zxvf backup.tar.gz ).

    But how we can restore the site in the new server ?

    i mean what\s the command which we must to do here to restore the web site ?

    I wish my question is clean :rolleyes:

    Regards,
     
  2. murali.r

    murali.r Member

    Joined:
    Mar 18, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Execute teh command "/scripts/restorepkg <username>" if it is cpanel server to restorre the account.
     
  3. FreeFox

    FreeFox Member

    Joined:
    Aug 25, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    murali.r

    Thanks for your reply, but the ste did't have any pakage or backup in our server.

    Just he upload backup.tar.gz via FTP from the his machine.

    So, please if you can provide me with right command to resolve it.

    Regards
     
  4. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    Try this...

    1. ensure that you have created his account via WHM.

    2. mv the tarball to the user's public_html directory.

    3. cd /home/<user>/public_html

    3. extract the backup files (tar -zxvf backup.tar.gz).

    4. chown -R <user>:<user> *

    5 Now, depending upon how/where the user backed up their files from the previous platform, you may have to recursively move his web files to the public_html directory.

    6. You (or the user) then creates email accounts/ftp account/databases and populates databases/modifies scripts to reflect new database names/passwords/users/paths accordingly.

    Oops, a good time to check permissions as well;)
     
  5. FreeFox

    FreeFox Member

    Joined:
    Aug 25, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Thanks all, the problem was FIXED.

    bamasbest [​IMG]
     
Loading...

Share This Page