Patronizing the exclude * option

Max Bowsher maxb at ukf.net
Thu Aug 1 02:48:01 EST 2002


Maurice Volaski wrote:
> I need to get around the requirement of --exclude=* to have all the
> parent directories of the files and directories that are to be
> included. So given the file..
>
> /startdirectory/subdirectory1/subdirectory2/filetobecopied
>
> I need to include
> /
> /subdirectory1
> /subdirectory1/subdirectory2

Maybe --include=*/ --exclude=* ?

Of course, that will sync the entire directory tree, but without files that are
not explicitely included.
Ugly, but won't waste much transfer time.

To the list in general:
Wasn't there a --files-from option someone was working on?

Max.





More information about the rsync mailing list