On Sat, 16 Aug 2025 09:58:37 +0400, Jake Anderson <[email protected]> 
wrote:

>Can we perform mass copying of OMVS files from a source USS path to a
>target USS path without overlaying the target directories if they already
>exist ?  Is there a batch way to do or any other productive way to do this?
>
>For example, I wanted to copy from /Service/etc to /etc without overlaying
>the target .

Warning, Hope for the best but plan for the worst. It's concerning that you 
aren't familiar with copying files using tar and your only consideration is not 
overlaying existing files.

/etc is a critical directory that can severely damage or disable your system 
because this is the UNIX equivalent of SYS1.PARMLIB but with far more risks. 
Have you considered TCPPARM search order. Thought about how to handle symlinks, 
hardlinks, special attributes, file owner/groups, retaining/replacing 
modification date and more. I'm guessing that SMP/e still loves symlinks. 
Thought about how you can remove those files if something unexpected happens. 
Thought about how to fix a failure because this bad file now exists.

Pax, tar and cp all have a don't replace option. 

I'm warning you again, whatever method you choose should handle all situations 
as you expect. Especially with /etc.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to