HOW TO: Transfer Web Site Data by Using FTP in a UNIX-to-Windows Migration

Article translations Article translations
Article ID: 324062 - View products that this article applies to.
This article was previously published under Q324062
Expand all | Collapse all

On This Page

SUMMARY

This step-by-step article describes how to use FTP to transfer files either as one large archive of the Web site or to transfer each file individually.

FTP is the least complicated method that you can use to transfer files between two platforms.


Transfer One Large File

You can store and serve Web sites in Apache from any location. Typically, a whole Web site is stored under a single directory. You can determine which directories are in use by using the grep utility to extract the DocumentRoot lines from a configuration file.

For example:

    grep DocumentRoot /usr/local/apache/conf/httpd.conf

    DocumentRoot /usr/local/apache/htdocs

After you determine the location, use tar to back up the documents to a file:
  1. Log on to the UNIX server as root.
  2. Change to the parent of the directory that is returned by the grep utility.

    For example, if the location is /usr/local/apache/htdocs, you type:

        cd /usr/local/apache
  3. Use tar to back up the whole directory. To back up to a file, use the following syntax:

        tar cf website.tar ./htdocs
Additionally, make sure to back up any directories that are used to hold sections of a Web site or that hold CGI script elements. Check the Apache configuration file for more details. For example, the ScriptAlias directive in an Apache configuration maps a logical directory in a Web site to a physical directory on the server:

    ScriptAlias /cgi-bin /usr/local/apache/cgi-bin

These may be outside of the document root for the Web site (as shown in the example).

Now move to the Windows-based computer:
  1. Click Start, point to Programs, point to Accessories, and then click Command Prompt.
  2. Change to the directory in which you want to store the files.
  3. Type ftp followed by the name of the UNIX host that is holding the tar file that you just created, and then press ENTER.
  4. Log on with an account that has FTP privileges and that can access the tar file that you just created.
  5. Type bin to switch to binary mode.
  6. Type prompt to switch off prompting.
  7. Change to the directory that is holding the tar file.
  8. Type get website.tar to retrieve the file.
  9. Type quit to exit the FTP client.
  10. Type exit to close the command prompt.
  11. Use WinZip or a similar tool to extract the contents of the tar file in your directory.NOTE: You may have to open and save or convert script files and data files to make sure that the line termination does not cause a problem. You can use the same process to transfer additional files and database files between two platforms during the migration.

Transfer Individual Files

Transferring individual files through the built-in FTP client in Windows is time-consuming for large sites because you must move in and out of each directory transferring the files. Instead, you can use an FTP client, such as FTP Voyage, to traverse the FTP directory for you and to mirror the contents of the UNIX-based Web site in a Windows directory.

One benefit of using FTP Voyager or a similar tool is that it uses ASCII mode for transferring ASCII files, which automatically translates the line termination sequence between the two platforms, and binary mode for graphics and other files, which eliminates any post processing on the files, but which does not fix the path name or other problems.



REFERENCES

For additional information about platform differences, file differences and compatibility, click the article numbers below to view the articles in the Microsoft Knowledge Base:
324054 HOW TO: Identify Potential File and Directory Problems in a UNIX-to-Windows Migration

324053 HOW TO: Fix File-Path Conflicts in a UNIX-to-Windows Migration

For additional information about how to test your migration from UNIX to Windows, click the article number below to view the article in the Microsoft Knowledge Base:
324058 HOW TO: Test a UNIX-to-Windows Migration with FrontPage Extensions

323952 HOW TO: Understanding Compatibility for a UNIX-to-Windows Migration

For additional information about how to prepare to migrate data from UNIX to Windows, click the article number below to view the article in the Microsoft Knowledge Base:
324538 HOW To: Migrate Web Site Data in a UNIX-to-Windows Migration









Properties

Article ID: 324062 - Last Review: October 30, 2006 - Revision: 3.2
APPLIES TO
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Small Business Server 2000 Standard Edition
  • Microsoft Internet Information Services 5.0
Keywords: 
kbhowto kbhowtomaster KB324062

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com