echo this program is old, use \`rsync-update\` instead
exit 1
[ `hostname` = jam ] || . fail "run rsync-update-* from jam, not bart!"
mr rsync.log.test 2>/dev/null

options="-n -zauv --exclude /.mozilla/**/Cache/ --exclude /.mozilla/**/lock --exclude /.bash_history --exclude /splishtory/ --exclude /.viminfo --exclude /.splish.tty.log --exclude /.ssh-agent --exclude /.Xauthority --exclude /.x/ --exclude /.mutt.tmp/ --exclude /Mail/"

one_way_options="-n -zav --delete"

(
brk
echo "jam->bart testing"
brk
rsync $options /home/sam/ bart:/home/sam/
rsync $options /share/ bart:/share/
brk
echo "bart->jam testing"
brk
rsync $options bart:/home/sam/ /home/sam/
rsync $options bart:/share/ /share/
brk
echo "jam->bart mail testing"
brk
rsync $one_way_options /home/sam/Mail/ bart:/home/sam/Mail/
brk
echo "cvs backup testing"
brk
rsync $one_way_options /cvs/ bart:/cvs.bak/
brk
echo "NOTE: didn't do anything, just testing; check the log is ok"
echo "then run rsync-update-doit"
) | tee /tmp/rsync.log.test

mv /tmp/rsync.log.test .
less rsync.log.test
