Results 1 to 6 of 6

Thread: Backup.tar.gz

  1. #1

    Backup.tar.gz

    Hi 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 did this command:

    tar -zxvf backup.tar.gz

    This UnZip files in current directory (the directory apache is serving the particular website from), after that i moved all files was in backup.tar.gz to public_html ( mv backup home/public_html )

    NOW, how i can setup or restore his site here in our new server?

    I wish my question is clean

    Regards,

  2. #2
    Join Date
    Mar 2004
    Posts
    66
    you must untar the backup archive in the apache's www directory, usual /var/www (this may differ, depending to your distro)

    ps: make sure you have ftp access to that dir

  3. #3
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    4,695
    If this is a backup the user made himself from cPanel just create the account and untar the file in /home/username/

  4. #4
    Originally posted by davila
    you must untar the backup archive in the apache's www directory, usual /var/www (this may differ, depending to your distro)

    ps: make sure you have ftp access to that dir
    Not necessarily.

    First, make sure the file was FTP'd binary.

    Second, you can use the mv command to move the directories to the correct location ... or you can use the cp command to copy the files/directory to the target ... or you can create a symbolic link.

    I usuall prefer mv after tar -zxvf to a temporary directory because sometimes the archived path isn't exactly what I want or need in my new path.

    It also gives me opportunity to delete dead wood before the mv.

  5. #5
    1. Create a new account for this domain including apache entry, ftp, folder, email ... etc. If you are using a control pane, this can be done by your control panel.

    2. Unzip backup.tar.gz to a temp location. /home is fine.

    3. Copy or Move the unzipped data to this domain's directory.

    4. You will need to change the folder user and group owner.

    command: chown -R user.group foldername

    5. You need to set the folder's permission as well if is incorrect.

    command: chmod -R XXX foldernam

    6. Test on your browser to ensure everything is working properly.

    Hope this can help.
    ******** - ASP, ASP.NET. Windows 2008 Hosting - Windows Reseller Plans

    1 Exabyte = two to the sixtieth power byte, 1,152,921,504,606,846,976 bytes

  6. #6
    Thanks all, the problem was FIXED.

    ksstudio

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •