# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-if [ $# -lt 1 ]
+if [ $# -lt 2 ]
then
- echo "Usage: $0 [MACHINE-TAB]"
+ echo "Usage: $0 [MACHINE-TAB] [DEST]"
echo
echo "The MACHINE-TAB file contains hostnames of machines to be backed up, one per line."
echo "Empty lines and lines starting with '#' are ignored."
fi
HOSTS=`cat $1 | egrep -v '^#|^ *$'`
+DEST="$2"
LOGGROUP=`basename $1`
LOGDIR=/var/log/wizbackup
LOCKDIR=/var/lock/wizbackup
-DEST=/backup
-EXCLUDES_DIR=$DEST/EXCLUDE
+EXCLUDES_DIR="$DEST/EXCLUDE"
today=`date +"%Y%m%d"`
mkdir -p $LOGDIR