[plug] script help

Tomasz Grzegurzko tomasz89 at gmail.com
Wed May 17 16:54:42 WST 2006


RUBYLIVE=cd ...
your command is
cd $RUBYLIVE
which will give
cd cd /var ...

BACKUPDIR=/backup (;)
Get rid of that ;, shouldn't be needed.

I can't remember smbmount syntax, haven't used in a long time..
Is that the prob?

On 5/17/06, Jon  Miller <jlmiller at mmtnetworks.com.au> wrote:
> 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
>
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://www.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au
>



More information about the plug mailing list