#!/bin/bash
# http://crystalfaeries.net/posix/bin/syncdoc
# celeste:crystalfaery 2012-12-21 15:03:10+00:00
let result=0 # success
echo "`now` ======= $0 ======= $0 =======" || let result=1 # counting forwards from beginning of file
echo "rsync -auvzH Documents/* `/usr/local/bin/my_twin`:~/Documents"
rsync -auvzH Documents/* `/usr/local/bin/my_twin`:~/Documents
echo "rsync -auvzH `/usr/local/bin/my_twin`:~/Documents ~"
rsync -auvzH `/usr/local/bin/my_twin`:~/Documents ~
echo "`now` ------- $0 ------- $0 -------" || let result=255 # counting backwards from end of file
exit $result
syntax highlighted by Code2HTML, v. 0.9.1