[plug] script problem

Daniel Foote freefoote at gmail.com
Tue May 23 10:08:13 WST 2006


> #!/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

The "put" command is not being fed into smbclient. Try adding a "-c
'put foo.tgz'" to the smbclient command line. See the smbclient man
page for a few more details on how to specify commands.

Hope this helps...

Daniel.



More information about the plug mailing list