#!/bin/bash
#                      /usr/local/bin/synclocal
# http://crystalfaeries.net/posix/bin/synclocal
# celeste:crystalfaery 2015-02-05 18:45:51+00:00

echo	"`now`	=======	$0	=======	$1	======="
echo	"`now`	-------	$0	-------	$0	-------"
cd /usr/local

rsync -auvzH `/usr/local/bin/my_twin`:/usr/local/share/upc                          /usr/local/share
rsync -auvzH                          /usr/local/share/upc `/usr/local/bin/my_twin`:/usr/local/share

rsync -auvzH --exclude-from=/usr/local/.exclude.txt `/usr/local/bin/my_twin`:/usr/local/{.??*,bin,doc,etc,games,*.html,man,readme.txt,software_license.kahealani.txt,src,user}                          /usr/local
rsync -auvzH --exclude-from=/usr/local/.exclude.txt                          /usr/local/{.??*,bin,doc,etc,games,*.html,man,readme.txt,software_license.kahealani.txt,src,user} `/usr/local/bin/my_twin`:/usr/local

echo	"`now`	-------	$0	-------	$1	-------"
exit	0	# we lie about errors and should accumulate an error-code after each rsync above


syntax highlighted by Code2HTML, v. 0.9.1