This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "perserve exact copy while copying" Watch "perserve exact copy while copying" New topic

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="" target="_blank" rel="nofollow">SCBCD 5.0</a><br /><a href="" target="_blank" rel="nofollow">SCBCD 5.0 mock exam</a> <br /> <br />SCEA 5 Part1: Preparing...
I agree. Here's the link:
subject: perserve exact copy while copying
Similar Threads
Ubuntu 11.10, Oneiric Ocelot, is out
Excluding class files in a Jar while copying from one folder to another.
JVM could not be loaded on windows 7
Need to Copy Hidden Folder
copy paste image