Hi all,

See the following for detail:

$ rsync -l ftp.cn.debian.org::debian/dists/wheezy/main/installer-amd64/
[snip]
drwxr-sr-x          4,096 2015/01/10 18:17:33 .
lrwxrwxrwx             18 2015/01/10 18:16:31 current -> 20130613+deb7u2
+b4
drwxr-xr-x          4,096 2013/05/01 05:33:52 20130430
drwxr-sr-x          4,096 2015/01/05 17:25:32 20130613+deb7u2+b4

In the above case, the current is a link to 20130613+deb7u2, I want to 
use the name of link directory, i.e., current, to retrieve the correspond 
stuff from remote server to my local host.  At the same time, exclude all 
of the other stuff in the installer-amd64 directory, for this case, it 
should be the directory 20130430. 

Considering that the sub-directories in installer-amd64 are often be 
renamed except the link directory name `current', so I want to only use 
the `current' as the directory name in my include/exclude rules for the 
above jobs. 

Any hints on how to write this rsync rules? 

Regards
-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to