[plug] script problem
Jon Miller
jlmiller at mmtnetworks.com.au
Tue May 23 09:14:07 WST 2006
Is there any special code that must be written in order to get the following to work in a script? This is connecting to a share on the W2k3 server for backups.
#!/bin/sh
# script to automate the backup of the Ruby server to the W2K3 server
#
DAY=`date +'%a-%d-%m-%y'`
BACKUPDIR=/backup
RUBYLIVE=/var/lib/mysql/
cd $RUBYLIVE
tar -czvf /backup/rubylive${DAY}.tgz ./rubylive
cd $BACKUPDIR
# login to w2k3 share to put backup file
smbclient //server/backup password -U administrator
put rubylive${DAY}.tgz
Thanks
More information about the plug
mailing list