Wildcards (include)

Ken ken at toudi.cisovanet.pl
Tue Mar 18 02:06:29 EST 2003


Hi,
I'm trying to synchronize some directories.

Let's say I need to synchronize:

/web/sites
/var/qmail/control
/home/ken

I don't want to run 3 rsync commands. I have already tried
using --include --exclude options, but it didn't work at all.

I supppose my command should be as follows:

rsync -azvl  --include-from=includes --exclude='*' / username at host.com:/ken/backup/

includes:
/web/sites
/var/qmail/control
/home/ken

The result is that I get nothing. Nothing is copied then.
No errors reported by rsync.

I also tried the same command, but without --exclude opotion.. 
and by chaning includes file:
+/var/qmail/control
+/web/sites
+/home/ken
-*                  (-/*)

What am I missing ?

Thank you!

Regards,

Ken


More information about the rsync mailing list