#!/bin/bash
# /usr/local/bin/syncmack
# http://crystalfaeries.net/posix/bin/syncmack
# celeste:crystalfaery 2014-05-04 02:51:09+00:00
# Synchronize our website to the backup on the Mac.
echo "`now` ======= $0 ======= $0 ======="
dryrun="" # uncomment this assignment to perform a wet-run
dryrun="--dry-run" # uncomment this assignment to perform a dry-run
echo 'rsync -auvzH $dryrun /home/www/{.??,}* mack:~/Sites'
rsync -auvzH $dryrun /home/www/{.??,}* mack:~/Sites
echo "`now` ------- $0 ------- $0 -------"
exit 0
syntax highlighted by Code2HTML, v. 0.9.1