Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!apple!apple.com!dbrown From: dbrown@apple.com (David Brown) Newsgroups: comp.protocols.tcp-ip.ibmpc Subject: Re: FTP transfer of tree structures Message-ID: <11929@goofy.Apple.COM> Date: 31 Jan 91 22:32:11 GMT References: <9101291607.aa05830@louie.udel.edu> Sender: usenet@Apple.COM Organization: Orion Network Systems Lines: 27 In article <9101291607.aa05830@louie.udel.edu> SCEF0003@WSUVM1.CSC.WSU.EDU ("James N. Petersen") writes: > Is there any way to have FTP transfer a tree structure and still retain > the tree structure on the receiving end. Two methods come to mind, neither of which is automatic or foolproof. 1) If you have enough disk space and compatible archiving utilities on both machines (e.g. tar, cpio, arc, stuffit, etc) create an archive, transfer (be sure to specify binary transfer), and unarchive. Be careful about line feed translations, etc. If you don't have enough disk space but do have some sort of remote execution facility (like rsh or rexec), you may be able to pipe the output of the "create archive" to the remote execution of the "extract archive" running on the remote machine. 2) Use find or equivalent command (e.g. from the MKS Toolkit) to create a list of directories in the tree; use sed or manually edit to make this into a batch file of mkdir's; use find again to create a list of files to transfer and transform this into a list of files to transfer which can be fed to ftp. David Brown 415-649-4000 Orion Network Systems (a subsidiary of Apple Computer) 1995 University Ave Suite 350 Berkeley CA 94704