List subdirectories only n level deep on the remote server when use the -a option of rsync.

Paul Slootman paul+rsync at
Sun Feb 2 02:09:05 MST 2014

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://, and I want to
> list all of the stuff in the following subdirectory only to 2 level
> deep:
> rsync://
> Any hints on this?

rsync -a --exclude '/*/*/*/***' rsync://


More information about the rsync mailing list