[plug] script problem

Patrick Coleman blinken at gmail.com
Tue May 23 09:11:27 WST 2006


On 5/23/06, Jon  Miller <jlmiller at mmtnetworks.com.au> wrote:
> 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
>

Which part of this isn't working? What errors do you get when you try to run it?

Cheers,
Patrick

-- 
http://www.labyrinthdata.net.au



More information about the plug mailing list