#!/bin/bash
# Simple rsync "driver" script to back up customers data LOCALLY using RSYNC
# Written by Erik Soroka, e-mail erik@erikimh.com or ext 834 for questions.

# Directory to copy from on the source machine.
BACKDIR="/home/"

# Directory to copy to on the destination machine.
DEST="/home-backup/"

# i.e., *~, *.bak, etc.  One "pattern" per line - You must create this file.
EXCLUDES=/etc/bkpexcludes

# Does copy, but still gives a verbose display of what it is doing
OPTS="-auvz --delete --exclude-from=$EXCLUDES --stats"

# May be needed if run by cron?
export PATH=$PATH:/bin:/usr/bin:/usr/local/bin

rsync $OPTS $BACKDIR $DEST 



