Operating System - HP-UX
1748259 Members
3824 Online
108760 Solutions
New Discussion юеВ

FTP all folders from win CD to HP-UX 11.31 folder

 
SOLVED
Go to solution
Joe Milici
Advisor

FTP all folders from win CD to HP-UX 11.31 folder

My DVD drive on my HP-UX server died and I need to install some software. I have a CD with the programs but there are many subfolders. How can I ftp all of these files including the subfolders onto the Unix server?
23 REPLIES 23
Steven E. Protter
Exalted Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Shalom,

You really can't ftp sub folders effectively

mput does all the files in the directly but it will take some time to get the job done and I've never tried it on sub folders.

You could stick the windows CD in the Unix box and do a samba or cifs or vfat or cdfs mount on it and get the data off directly.

Or winzip the CD and send up a single fine and then use gzip to unzip it.

Lots of ways to skin this cat.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tim Nelson
Honored Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

To expand on Stevens ideas..

If you are running 11.11 or 11.23 you can create an ISO image from the CD. ftp that to the unix server then use PFS to mount the ISO just like a cd.

http://h20229.www2.hp.com/downloads/iso_format.html?jumpid=reg_R1002_USEN

Steven Schweda
Honored Contributor
Solution

Re: FTP all folders from win CD to HP-UX 11.31 folder

Assuming that nothing untoward happens to the
file names, an easy way might be to use some
Zip program on the Windows system to create a
Zip archive there, use FTP to copy that to
the HP-UX system, and extract the files there
using the usual Info-ZIP UnZip program.

http://www.info-zip.org/

If you have more than 2GB of stuff (that is
if you were lying about the "CD" part, and
it's really a DVD more than about half full),
then you can expect some large-file
complications. Otherwise, what could go
wrong?
Joe Milici
Advisor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Ok. If I use pkzip and then gzip. What would the gzip syntax be to keep the folders?
Joe Milici
Advisor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Steven,

I clicked on properties and it shows 496MB used on the cd.
Steven Schweda
Honored Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

> You really can't ftp sub folders effectively

Maybe _you_ can't. I often use wget for
recursive FTP transfers, and it often works
just fine.

I assume that it's not suitable in this case,
because it only fetches files, and I assume
that the (unspecified) Windows system here
lacks an FTP server.

> [...] then use gzip to unzip it.

I find that UnZip generally works better
than gzip on Zip archives. According to:

http://winzip.com/wzdifs.htm

[...] WinZip supports all operations on
gzip files except creating new ones.

So, I wouldn't expect it to make a useful
gzip archive of a CD.

> Lots of ways to skin this cat.

Some may even work.
Steven Schweda
Honored Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

> What would the gzip syntax be to keep the
> folders?

Good question. That's why I'd use Info-ZIP
UnZip.

Gzip is normally used with "tar" for a good
reason. It's a file compression program, not
a general purpose file archiving and
compression program.
Joe Milici
Advisor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Steven.

I have zipped the files and set the winzip option to keep directoires. Do I just ftp the binary to the unix server and run

unzip dpzip.zip?
Dennis Handly
Acclaimed Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

>Do I just ftp the binary to the unix server and run: unzip dpzip.zip?

Yes. Make sure you use binary mode to copy.
You could use "unzip -l dpzip.zip" to see if everything is there.