FP Transfer

  • Follow


I will be transferring files from a Windows server to a SCO server and =
want to create a single transfer file.  I don't believe that I can do =
that in the interactive mode, and there are too large a number of files =
to fit them all onto one command line.   Can anyone tell me if the file =
names can be put into a text file and have the command line use the text =
file as the source of the file names to be transferred?  If the text =
file can be used in this manner, what is the exact syntax to be used?

Thanks,

Rodgers Hemer
206.523.2329
r.hemer@w-link.net


0
Reply Rodgers 11/16/2009 9:47:40 PM

Rodgers Hemer wrote:
> I will be transferring files from a Windows server to a SCO server
> and want to create a single transfer file.  I don't believe that I
> can do that in the interactive mode, and there are too large a number
> of files to fit them all onto one command line.   Can anyone tell me
> if the file names can be put into a text file and have the command
> line use the text file as the source of the file names to be
> transferred?  If the text file can be used in this manner, what is
> the exact syntax to be used?

There are many ways to do this. One way is to make a tar "archive" file.
you'll need a copy of tar for Windows to archive the files. I use the 
tar from http://unxutils.sourceforge.net/ but many others exist.

   c:
   cd \sourcefolder
   tar cvf transfer.tar thisfolder otherfolder

Will create an archive in transfer.tar of all the files and 
subdirectories within both c:\sourcefolder\thisfolder and 
c:\sourcefolder\otherfolder. You can add whatever other directories you 
need to the end of the command. You don't need to list files individually.

If you really want to include files using a text file containing 
filenames, use tar's -I option
    tar cvf transfer.tar -I filenames.txt

After transferring the archive file to Unix (for which I'd use FTP)
   cd /destination
   tar xvf /path/to/transfer.tar

Which will extract the files into /destination/thisfolder and 
/destination/otherfolder

-- 
RGB
0
Reply RedGrittyBrick 11/17/2009 7:48:28 PM


1 Replies
193 Views

(page loaded in 0.05 seconds)

Similiar Articles:













7/19/2012 8:41:59 PM


Reply: