On Tuesday February 3 2009 21:16, you wrote:
>>     rsync -aHESvv --delete \
>>           --exclude '/home/jonathan/crypt/*' \
>>           --exclude '/mnt/oxygen/home/jonathan/crypt/*' \
>>           /home/jonathan/ /mnt/oxygen/home/jonathan/
>>  This works fine except that the --exclude options are not honored
>>  (files under those directories are still copied).  I don't know
>> what's wrong there...
>
>[...]
>
>how about using double-quotes instead? for eg., --exclude
>"/home/jonathan/crypt/*". your shell might be preventing rsync from
>looking what's inside the quotes...

I think rsync needs to see the asterisks, not the shell. So single 
quotes are correct. In my own scripts, when i wanted to exclude a 
directory i used to specify just the directory with no wildcard and it 
worked. Example:
    --exclude '/home/jonathan/crypt'
However, that would also exclude /home/jonathan/crypt2 as collateral 
damage. This format is what i use now and does what i think you want:
    --exclude '/home/jonathan/crypt/**'

------------------------------------------------------------------------
Dan Ramaley                            Dial Center 118, Drake University
Network Programmer/Analyst             2407 Carpenter Ave
+1 515 271-4540                        Des Moines IA 50311 USA

Reply via email to