Experience …

“Experience is what enables you to recognize your mistakes when you make them again.”

After running the wrong script the third time today, I edited the script to be

#!/bin/bash

echo "=== *** UPDATING WEBSITES LL/UG/GR FROM LOCAL WILL BEGIN IN  10  SECONDS! *** ==="
sleep 1
echo "=== *** UPDATING WEBSITES LL/UG/GR FROM LOCAL WILL BEGIN IN   9  SECONDS! *** ==="
sleep 1
echo "=== *** UPDATING WEBSITES LL/UG/GR FROM LOCAL WILL BEGIN IN   8  SECONDS! *** ==="
sleep 1
echo "=== *** UPDATING WEBSITES LL/UG/GR FROM LOCAL WILL BEGIN IN   7  SECONDS! *** ==="
sleep 1
echo "=== *** UPDATING WEBSITES LL/UG/GR FROM LOCAL WILL BEGIN IN   6  SECONDS! *** ==="
sleep 1
echo "=== *** UPDATING WEBSITES LL/UG/GR FROM LOCAL WILL BEGIN IN   5  SECONDS! *** ==="
sleep 1
echo "=== *** UPDATING WEBSITES LL/UG/GR FROM LOCAL WILL BEGIN IN   4  SECONDS! *** ==="
sleep 1
echo "=== *** UPDATING WEBSITES LL/UG/GR FROM LOCAL WILL BEGIN IN   3  SECONDS! *** ==="
sleep 1
echo "=== *** UPDATING WEBSITES LL/UG/GR FROM LOCAL WILL BEGIN IN   2  SECONDS! *** ==="
sleep 1
echo "=== *** UPDATING WEBSITES LL/UG/GR FROM LOCAL WILL BEGIN IN   1  SECOND ! *** ==="
sleep 1

echo "========= LL ==========="
nice time rsync -avz -e ssh -t --delete --bwlimit=400 --exclude 'cache' \
          /Library/WebServer/Documents/LL/                              \
          lang-learn.org@lang-learn.org:/home/la/lang-learn.org/html
echo "========================"
echo "========= GR ==========="
nice time rsync -avz -e ssh -t --delete --bwlimit=400 --exclude 'cache' \
          /Library/WebServer/Documents/GR/                              \
          grolea.us@grolea.us:/home/gr/grolea.us/html
echo "========================"
echo "========= UG ==========="
nice time rsync -avz -e ssh -t --delete --bwlimit=400 --exclude 'cache' \
          /Library/WebServer/Documents/UG/                              \
          unigen.us@unigen.us:/home/un/unigen.us/html