Re: please help: How to copy all files under the folder

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 6/23/2010 11:58 AM, ann kok wrote:
> Hi all
>
> There are some soft/hard link. symoblic link files/folder under the top folder
>
> How to copy all files under this top folder?
>
> Thank you

I usually use rsync even for local copies, but cp -a will work too.  I 
like to cd into the source fold and use '.' as the source name so I 
don't have to remember the rules about whether a new directory is 
created under the target or not.  I don't think you can make the hard 
linked files become additional hard links to the same instance without 
saying to link everything, though.  If you use rsync, you have to add -H 
to hardlink the files together that are hardlinks in the source.  This 
is an inefficient operation and not automatically bundled in the '-a' 
option like most of the other attribute-preserving options.

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx




_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux