aspose file tools*
The moose likes Linux / UNIX and the fly likes perserve exact copy while copying Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "perserve exact copy while copying" Watch "perserve exact copy while copying" New topic
Author

perserve exact copy while copying

Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
How to copy in unix preserving the entire folder structure while copying.

I tripe as cp -rp 'source folder' . (present folder)

But I get something like below:



What is this?
Mirko Bonasorte
Ranch Hand

Joined: May 14, 2007
Posts: 244
You tipically get such an error if the destination file system does not support ownership permissions (for example, if it's samba)


SCJP<br />SCWCD 1.4 Upgrade (Remember: me stupid)<br />SCWCD 1.4<br /><a href="http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html" target="_blank" rel="nofollow">SCBCD 5.0</a><br /><a href="http://www.enthuware.com" target="_blank" rel="nofollow">SCBCD 5.0 mock exam</a> <br /> <br />SCEA 5 Part1: Preparing...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: perserve exact copy while copying