Re: Rsync, how to include ~/.files but not ~/.dirs
On Friday 26 January 2007 09:19, Ken Irving wrote:
> For some reason, .dir1/ is not excluded if the option is given as
> --exclude=/tmp/home/*/.*/ or --exclude=tmp/home/*/.*/.
Expansion of unquoted globs in keyword arguments
seldom gives the intended result. e.g.
rsync --exclude=/home/*/.*/ /home/ /tmp/
might expand to:
rsync --exclude=/home/a/.x/ /home/a/.y/ /home/b/.x/ /home/b/.y/ /home/ /tmp/
which copies a lot more than presumably intended.