How can I use cp to copy a directory but ignore a certain sub directory in Linux
Posted
by P Roy
on Super User
See other posts from Super User
or by P Roy
Published on 2010-06-13T07:43:50Z
Indexed on
2010/06/13
8:03 UTC
Read the original article
Hit count: 343
cp
Due to a Hard disk problem I am trying to shift a partition from one hard disk to another. I am following http://www.ibm.com/developerworks/library/l-partplan.html article to do that. In the copying part I would like to ignore one particular sub directory. How can I accomplish that keeping in mind when copying I have to preserve my owner group and time stamp. There is around 700 GB of data that needs to be copied if I do not ignore a particular subdirectory.
© Super User or respective owner