Computing.Net > Forums > Unix > tar and gunzip help please

tar and gunzip help please

Reply to Message Icon

Original Message
Name: Ross
Date: April 3, 2001 at 01:23:31 Pacific
Subject: tar and gunzip help please
Comment:

Hi. I'm moving a fairly large web site with lots of directories and subdirectories from one (UNIX/Apache) server to another. So I want to zip the whole lot up on the old server, and unzip it on the new. I _think_ that the correct commands to use are tar and gunzip respectively, but I'm not sure. So what I'm seeking is a no-frills guide to achieving what I want to achieve. Is there any way to preserve file chmod/chown file and directory permissions as part of the move?

Thanks very much.


Report Offensive Message For Removal

Response Number 1
Name: Jarrett Jones
Date: April 3, 2001 at 12:45:27 Pacific
Subject: tar and gunzip help please
Reply: (edit)

You say you want to move a large amount of files from machine A to machine B;
Share the directory on machine A that has the files.
share -F nfs -o rw /opt/apache/htdocs

Mount the shared directory on machine B.
mount machinea:/opt/apache/htdocs /mnt

Start copying.
cd /mnt
tar cvfp - * | (cd /opt/apache/htdocs; tar xf -)
Replace the /opt/apache/htdocs witht
the location you want the files to go to on machine B.

Hope this helps


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: tar and gunzip help please

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software