A thousand greetings, I'm trying to rsync a directory from a server to my local machine that has a symbolic link to a directory I don't want to download. I have an "exclude" option to exclude the symlink which works fine. However, if I add a --copy-links option to the command, it appears to override my "exclude" directive and the contents of the symlinked directory gets downloaded anyway. I suspect I need some kind of --filter option. I read the documentation (or at least tried do) regarding the --filter option but a mortal, casual user like me could not make heads or tails of it. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20170303/e8e1c228/attachment.html>
On Fri 03 Mar 2017, Steve Dondley wrote:> I'm trying to rsync a directory from a server to my local machine that has > a symbolic link to a directory I don't want to download. I have an > "exclude" option to exclude the symlink which works fine. However, if I add > a --copy-links option to the command, it appears to override my "exclude" > directive and the contents of the symlinked directory gets downloaded > anyway.You don't say explicitly, is the target of the symlink inside or outside the source directory? Paul
The directory I'm trying to copy from is: /home/blah/dir The symlink is /home/blah/dir/unwanted_symlinked_dir On Fri, Mar 3, 2017 at 8:10 AM, Paul Slootman <paul+rsync at wurtel.net> wrote:> On Fri 03 Mar 2017, Steve Dondley wrote: > > > I'm trying to rsync a directory from a server to my local machine that > has > > a symbolic link to a directory I don't want to download. I have an > > "exclude" option to exclude the symlink which works fine. However, if I > add > > a --copy-links option to the command, it appears to override my "exclude" > > directive and the contents of the symlinked directory gets downloaded > > anyway. > > You don't say explicitly, is the target of the symlink inside or > outside the source directory? > > > Paul >-- Prometheus Labor Communications, Inc. http://prometheuslabor.com 413-572-1300 <(413)%20572-1300> Communicate or Die: American Labor Unions and the Internet http://communicateordie.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20170303/efe9a729/attachment.html>
On Fri, Mar 3, 2017 at 4:41 AM, Steve Dondley <s at dondley.com> wrote:> However, if I add a --copy-links option to the command, it appears to > override my "exclude" directive and the contents of the symlinked directory > gets downloaded anyway. >The use of --copy-links doesn't do that, so mention what your args and paths are and we can figure out what you're seeing. ..wayne.. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20170305/5d26893a/attachment.html>