This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: perserve exact copy while copying
 
Similar Threads
Ubuntu 11.10, Oneiric Ocelot, is out
Need to Copy Hidden Folder
Excluding class files in a Jar while copying from one folder to another.
copy paste image
JVM could not be loaded on windows 7