Hi Dave, HOWD:TSREL:/home/tsrel: man copytree copytree -- Make a copy of a file hierarchy while preserving all file attributes
Format /samples/copytree [-afos] sourcedir [targetdir] Description copytree is a REXX sample that enables you to use a number of z/OS UNIX capabilities. Included is a recursive routine to descend a hierarchical directory. You can also use it to accomplish the following tasks: ▒ Retrieve and set attributes for files ▒ Read and write files ▒ Read and set access control lists (ACLs) copytree replicates a source tree starting under the source directory within a file system to a target directory. It: ▒ Tolerates errors when setting target attributes with messages. ▒ Tolerates errors in the source tree, skipping those files. ▒ Copies sparse files as sparse files. ▒ Handles both symbolic links and external links ▒ Does not cross mount points ▒ Preserves file links Thanks! BobL -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Dave Crowley Sent: Monday, October 05, 2015 12:43 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Copy a directory structure with copying files. [ EXTERNAL ] I need to copy a directory structure of a USS (zFS if this matters) from one LPAR to another. I looked at "tar" and "pax" and just can't see a way to do this. I will be changing the high level directory though. For example The from directory: /usr/local/productV1/* To: /usr/lpp/productV1/ I was hoping to "unPax" to the new directory with the entire directory structure. Please help a Unix rookie.. Dave Crowley ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. OppenheimerFunds may, at its sole discretion, monitor, review, retain and/or disclose the content of all email communications. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN