#!/bin/bash
let result=0 # success
echo "`now` ======= $0 ======= $0 =======" || let result=1 # counting forwards from beginning of file
echo 'rsync -auvzH /home/devas `/usr/local/bin/my_twin`:/home'
rsync -auvzH /home/devas `/usr/local/bin/my_twin`:/home # send our updates
echo 'rsync -auvzH `/usr/local/bin/my_twin`:/home/devas /home'
rsync -auvzH `/usr/local/bin/my_twin`:/home/devas /home # gather theirs
echo "`now` ------- $0 ------- $0 -------" || let result=255 # counting backwards from end of file
exit $result
syntax highlighted by Code2HTML, v. 0.9.1