[plug] script help
Jon Miller
jlmiller at mmtnetworks.com.au
Wed May 17 17:08:18 WST 2006
Like to get some input on this script.
All it's supposed to do is tar a subdirectory and copy/move the file to a W2K3 server.
!/bin/sh
# script to automate the backup of the Ruby server to the W2K3 server
#
DAY=`date +'%a-%d-%m-%y'`;
BACKUPDIR=/backup;
RUBYLIVE= cd /var/lib/mysql/
cd $RUBYLIVE
tar -czvf /backup/rubylive${DAY}
cd $BACKUPDIR
smbclient //server/backup password -U administrator
put $RUBYLIVE${DAY}
Thanks
More information about the plug
mailing list