The rsync sample script located at:
http://www.linux-mandrake.com/en/rsync.txt
has an error in it.

It has a flag like so: --exclude '/.*'

I presume that is to avoid downloading the temporary files rsync makes
while syncing.  

However this flag doesn't work with the way that script is setup.  It
should be --exclude '.*'

I made a directory named test and touched x and .x note the files
transfered and how the flag is set:

[root@titanium root]# rsync --rsh=ssh -auv --partial --max-delete=5
--delete --exclude '.*' stream.brain.org:/home/breser/test .
[EMAIL PROTECTED]'s password:
receiving file list ... done
test/
test/x
test/
wrote 38 bytes  read 96 bytes  15.76 bytes/sec
total size is 0  speedup is 0.00
[root@titanium root]# rm -rf test
[root@titanium root]# rsync --rsh=ssh -auv --partial --max-delete=5
--delete --exclude '/.*' stream.brain.org:/home/breser/test .
[EMAIL PROTECTED]'s password:
receiving file list ... done
test/
test/.x
test/x
test/
wrote 55 bytes  read 145 bytes  30.77 bytes/sec
total size is 0  speedup is 0.00

-- 
Ben Reser <[EMAIL PROTECTED]>
http://ben.reser.org

What difference does it make to the dead, the orphans, and the homeless,
whether the mad destruction is wrought under the name of totalitarianism
or the holy name of liberty and democracy? - Ghandi

Reply via email to