On 2015-10-05 13:03, Lester, Bob wrote:
> Hi Dave,
> 
>      HOWD:TSREL:/home/tsrel: man copytree
>   copytree -- Make a copy of a file hierarchy while preserving all file 
> attributes
>  
But that copies the files as well as creating the directories.  How about:

    cd source-directory
    pax -wf output-file $( find . -type d )  # Beware shell metacharacters in 
pathnames!

> -----Original Message-----
> From: Dave Crowley
> Sent: Monday, October 05, 2015 12:43 PM
> 
> 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..

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to