Hongyi Zhao
2014-Feb-02 08:51 UTC
List subdirectories only n level deep on the remote server when use the -a option of rsync.
Hi all, I want to list the contents on the remote rsync server only to n, say, 2 level deep. In my case the the server is rsync://ftp.cn.debian.org, and I want to list all of the stuff in the following subdirectory only to 2 level deep: rsync://ftp.cn.debian.org/debian Any hints on this? Regards -- Hongyi Zhao <hongyi.zhao at gmail.com> Xinjiang Technical Institute of Physics and Chemistry Chinese Academy of Sciences GnuPG DSA: 0xD108493
Paul Slootman
2014-Feb-02 09:09 UTC
List subdirectories only n level deep on the remote server when use the -a option of rsync.
On Sun 02 Feb 2014, Hongyi Zhao wrote:> > I want to list the contents on the remote rsync server only to n, say, > 2 level deep. > > In my case the the server is rsync://ftp.cn.debian.org, and I want to > list all of the stuff in the following subdirectory only to 2 level > deep: > > rsync://ftp.cn.debian.org/debian > > Any hints on this?rsync -a --exclude '/*/*/*/***' rsync://ftp.cn.debian.org/debian Paul