[Gllug] cp real files but not links

John Hearns hearnsj at googlemail.com
Wed Feb 25 15:32:12 UTC 2009


2009/2/25 David L Neil Mailing list a/c <GLLUG at getaroundtoit.co.uk>:
> Is it possible to copy a directory's contents (and sub-directories) to a
> new location, but only the 'real files' and not any symlinks?

The default behaviour for rsync is to ignore symlinks.

So try      rsync ../original/* /copy


Or something like that - YMMV
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list