#!/bin/bash . ./backmeupscotty REMOTE_HOST=localhost REMOTE_DIR=/home/regina/backtest/dest ARCHIVE_KEEPNBACKUPS=10 ARCHIVE_KEEPNDAYS=0 BACKUP_RUNEVERYNTHDAY=1 SYNC_SRC="/home/regina/backtest/source" SYNC_EXC="/gack,/gugu/*" function prepare { echo "prepare" sleep 5 } function cleanup { [ -z "$1" ] && echo "normal cleanup" || echo "abort cleanup" } backmeupscotty $@