[Gllug] rsync-ing sub-directories only

Richard Jones rich at annexia.org
Mon Nov 23 11:32:28 UTC 2009


On Mon, Nov 23, 2009 at 10:57:15AM +1300, GLLUG at getaroundtoit.co.uk wrote:
[...]

I think what you want is:

  cd ~/Desktop
  rsync -av --filter '+ /*/***' --filter '- *' . /path/to/target

Rich.

-- 
Richard Jones
Red Hat
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list