• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

perserve exact copy while copying

 
Gopu Akraju
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You tipically get such an error if the destination file system does not support ownership permissions (for example, if it's samba)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic