1823106 Members
3119 Online
109646 Solutions
New Discussion юеВ

Re: FTPing directories

 
SOLVED
Go to solution
Brian Atkins
Advisor

FTPing directories

I am trying to copy several $HOME directories from an existing 10.20 machine to a new 11.00 machine. The 11.00 box is trusted and will not allow root login or ftp, but the existing server will.
I think my best option is to ftp over from the new machine to the old one, but I am not having any success copying the directories, and continue to get error: NOT A PLAIN TEXT FILE.
7 REPLIES 7
Tom Danzig
Honored Contributor

Re: FTPing directories

I would suggest you set up .rhosts (even temporarily) and use rcp to copy the directories.

See "man .rhosts" and "man rcp"
Victor BERRIDGE
Honored Contributor

Re: FTPing directories

As Tom suggests the use of rcp -rp is one alternative, another one would be to export /home from you HPUX10.X and mount the filesystem/directory on your HPUX11, then cp .
I hope for you the UIDs are the same on both machines...

Good luck
Regards
Victor
Patrick Wallek
Honored Contributor
Solution

Re: FTPing directories

FTP (FILE transfer protocol) by design will not allow you to transfer a directory. You can transfer all FILES within a directory by using the mput/mget commands, but that is all.

I would agree that setting up the /.rhosts temporarily to allow rcp between the machines would be the best bet. You can then do an 'rcp -r' to copy the all of /home or all of the selected /home/whatever directories.

Brian Atkins
Advisor

Re: FTPing directories

Thanks, guys. I went ahead and set up the .rhosts to allow rcp. I wanted to avoid that option for security, but ya gotta do what ya gotta do...
Fred Martin_1
Valued Contributor

Re: FTPing directories

Or you could use tar to create a file containing the directory and it's contents - then ftp the file to the new machine, where the files would be extracted.
fmartin@applicatorssales.com
Tony Constantine_1
Regular Advisor

Re: FTPing directories

tar them up and ftp them, this will keep all permissions & time stamps
Paula J Frazer-Campbell
Honored Contributor

Re: FTPing directories

Hi
How about NFS - export the dirs from the 10.20 machine - mount it on the 11.00 and copy to destination.

Quick and easy.

Paula
If you can spell SysAdmin then you is one - anon