This is still bugged on the site if anyone cares to take the five seconds to delete the three errant slashes...
----- Forwarded message from Ben Reser <[EMAIL PROTECTED]> ----- From: Ben Reser <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [Cooker] Rsync script error Date: Sat, 2 Mar 2002 10:06:23 -0800 User-Agent: Mutt/1.3.25i X-Spam-Status: No, hits=-100.0 required=5.0 tests=A_FROM_IN_AUTO_WLIST version=2.0 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 ----- End forwarded message ----- -- Ben Reser <[EMAIL PROTECTED]> http://ben.reser.org We tend to see all wars through the lens of the current conflict, and we mine history for lessons convenient to the present purpose. - Brian Hayes
