Multiple wildcards in source
alexc223 at googlemail.com
Fri Oct 29 09:00:07 MDT 2010
We have a directory structure such as:
I need to use a single rsync command to sync "/home/*/domains/*" to another
directory, but I'm really struggling on how to do this.
rsync -arv '/home/*/domains/*' ~/
rsync: change_dir "/home/*/domains" failed: No such file or directory (2)
I've been looking at doing it another way, using something mad such as:
rsync -arv --exclude='*' --include='*/domains/*' home ~/
But this still copies every file under /home
Is this possible to do?
More information about the rsync