Re: Transferring directory structure to Windows



Hi all,

I use SCP to copy files from my AIX machines. It offers the "preserve"
attribute as well as recursively copying the whole entire directory
structure as it is laid out on the AIX machine. For example:

MKDIR C:\KREMBLAS
CD C:\KREMBLAS
scp -p -r kremblas@xxxxxxxxxxxxxxxxxxxxxxxxx:.ssh .

where:

-p preserve attributes
-r recursively copy
kremblas user name
@aixmachine.domainname.com
: very IMPORTANT -- don't forget this as it
tells SCP a directory name or file name is to follow (I think)
.ssh the directory called .ssh in my HOME
directory on "aixmachine". You can use a FULL pathname as well
. Copy file to current LOCAL directory on
Windows machine.

I installed PuTTY to get the SCP package. It's very easy to install and
it's free and reliable. You can get the latest version of PuTTY here:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Select the
'putty.zip' file for Windows XX.


However, this whole process is dependent on you having SSH installed on the
AIX machine and that you've already gone through the SSH config process on
the AIX machine and you already have your '.ssh' directory created in your
HOME directory on the AIX machine. If you need more instructions, please
advise.

Another benefit of using SCP is because it's more secure than FTP and you
don't have to worry about what Simon is thinking of doing (which I used to
do until I found SCP).

I hope this helps.


--
Best Regards, I Am,


Joseph Kremblas, C. A. T. E.
Phone: (919) 484-3071
IBM Certified Advanced Technical Expert (CATE) ? RS/6000 (pSeries) AIX
IBM Certified Specialist ? RS/6000 SP AND PSSP 3.1
IBM Certified Specialist ? pSeries AIX V5.1 Systems Support
IBM Certified Specialist ? pSeries AIX V5.1 System Administration
IBM Certificate of Proficiency ? AIX Communications
IBM Certificate of Proficiency ? AIX Installation, Backup and System
Recovery
IBM Certificate of Proficiency ? AIX Problem Determination
IBM Certificate of Proficiency ? AIX Performance and Systems Tuning
IBM Certified Specialist ? AIX V4.X Systems Support
IBM Certified Solutions Expert ? MQSeries
IBM Certified Specialist ? MQSeries

"Doubt is a pain too lonely to know that faith is his twin brother."

All Rights Reserved.
--

NOTICE: This communication may contain confidential, proprietary or legally
privileged information. It is intended only for the person(s) to whom it is
addressed. If you are not an intended recipient, you may not use, read,
retransmit, disseminate or take any action in reliance upon it. Please
notify Joseph Kremblas and the sender that you have received it in error and
immediately delete the entire communication, including any attachments.
Joseph Kremblas does not encrypt and cannot ensure the confidentiality or
integrity of external e-mail communications and, therefore, cannot be
responsible for any unauthorized access, disclosure, use or tampering that
may occur during transmission. This communication is not intended to
create or modify any obligation, contract or warranty of Joseph Kremblas,
unless he, Joseph Kremblas, clearly expresses such an intent. Joseph
Kremblas shall not be liable for the improper or incomplete transmission of
the information contained in this communication nor for any delay in its
receipt or damage to your system. Joseph Kremblas does not guarantee that
the integrity of this communication has been maintained nor that this
communication is free of viruses, interceptions or interference.



-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
Jean-Marc Monnez
Sent: Monday, November 06, 2006 09:05
To: aix-l@xxxxxxxxxxxxx
Subject: Re: Transferring directory structure to Windows


How about (free on AIX) curl, ncftpput, or expect ? I never tried, but
AFAIK they could help.
(NB : I have my own development to "put" directory tree with ftp, but it
is context specific.)
Regards.
-- JMM

-----------------------------
Jean-Marc MONNEZ
MSA / AGORA / ATD
monnez.jean-marc@xxxxxxxxxxxx
-----------------------------

Green, Simon (EDS) a écrit :
I'm not able to install any software on the Windows server, so I don't
think that'll help me.

I *think* that tar'ing them up and ftping that, then extracting with
WinZip will work, but it's a bit clumsy and mean I need twice as much
disk space.

Simon

-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf
Of Baghele, Bipin
Sent: 03 November 2006 16:16
To: aix-l@xxxxxxxxxxxxx
Subject: Re: Transferring directory structure to Windows


Try winscp (http://winscp.net/eng/index.php)

-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf
Of Green, Simon (EDS)
Sent: Friday, November 03, 2006 10:47 AM
To: aix-l@xxxxxxxxxxxxx
Subject: Transferring directory structure to Windows

We're migrating a lot of files from an AIX 4.3.3 server to a Windows
server. On the AIX box, each file will be in its own directory, all of
which are subdirectories of one main directory.

Now, an ftp "mget *" would get all of the files, but it won't preserve
the directory structure. Since some of the files may have duplicate
names this
won't do. Is there any way I can copy an entire directory structure
with
readily available tools? (I don't have time to obtain anything new.)
best
thing I can come up with so far is to tar them up and ftp that to the
Windows box, then use WinZip to extract the data, although I'm not sure
what
that'll do to the directory structure. Or I could install a zip utility
from the AIX Toolbox: not sure if there's any advantage to that.

There's quite a lot of data involved, and many thousands of files.

Any suggestions appreciated.


Ce message est protégé par les règles relatives au secret des
correspondances. Il est donc établi à destination exclusive de son
destinataire. Celui-ci peut donc contenir des informations confidentielles.
La divulgation de ces informations est à ce titre rigoureusement interdite.
Si vous avez reçu ce message par erreur, merci de le renvoyer à l'expéditeur
dont l'adresse e-mail figure ci-dessus et de détruire le message ainsi que
toute pièce jointe.

This message is protected by the secrecy of correspondence rules. Therefore,
this message is intended solely for the attention of the addressee. This
message may contain privileged or confidential information, as such the
disclosure of these informations is strictly forbidden. If, by mistake, you
have received this message, please return this message to the addressser
whose e-mail address is written above and destroy this message and all files
attached.



Relevant Pages