[plug] script problem

Jon Miller jlmiller at mmtnetworks.com.au
Fri May 26 10:03:37 WST 2006


I think the issue is I need to be root so I can change to the /backup and run the last 2 commands

Jon

>>> shannon.carver at gmail.com 9:10:17 am 23/05/2006 >>>
Hi Jon, 

Nothing special in there, you just need to make sure the client machine is
working with tar and smbclient correctly.  Tar, of course, shouldn't be a
problem.  But I'd manually run the smbclient line with a test file just to
test that permissions on the w2k3 server are setup correctly, and the client
can connect fine with the password stored.

Shannon



> -----Original Message-----
> From: plug-bounces at plug.org.au [mailto:plug-bounces at plug.org.au] On Behalf
> Of Jon Miller
> Sent: Tuesday, 23 May 2006 9:14 AM
> To: plug at plug.org.au 
> Subject: [plug] script problem
> 
> 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
> 
> 
> 
> _______________________________________________
> 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 

_______________________________________________
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