Re: running backup



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Florian Kulzer wrote:
On Wed, May 31, 2006 at 13:56:39 +0800, Jon Miller wrote:
I have a file that I want to run daily to backup data.
This tgz file then needs to be copied to a Windows 2003 server.
I'm using smbclient, but it does not seem to work thru the script.
Can someone point out where the problem lies. I run this as a
cron job as follows:
30 19 * * 1,2,3,4,5 root /root/rubybackup.sh

The script is as follows:
#!/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
smbclient //server/backup tfc651800 -U administrator
put rubylive${DAY}.tgz

The recommended procedure for smbclient in scripts is to use the -c
option for the command string. In your case that would probably be
something like

smbclient //server/backup tfc651800 -U administrator -c "put rubylive${DAY}.tgz; exit"

Is it really necessary to use the administrator account for pushing a
backup file to the server?

Windows has functional non-Administrator accounts?????? :\

- --
Ron Johnson, Jr.
Jefferson LA USA

Is "common sense" really valid?
For example, it is "common sense" to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that "common sense" is obviously wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEfVUqS9HxQb37XmcRAuiTAJ4mM5kh1BhjohIyRlVbO6iDNGErVQCeKpl4
4mE7ehcYYEZWwkQsSXuzN/s=
=plQI
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Windows/Macro Language Info?
    ... The point is that malware is often using Windows _features_. ... I totally understand the difference between client and server side (and you ... subverted by script code (the facilities to change file size, dates, etc. ...
    (comp.lang.cobol)
  • RE: NFS on w2k3 server question
    ... new Windows 2K3 server and it will work properly after migrating from ... Window NT4.0 to Windows 2K3. ... logon script migration is specific to how the logon ... it is recommended that you contact Microsoft Customer Support ...
    (microsoft.public.windows.server.migration)
  • Re: Windows 2008 Limitlogin
    ... We are using windows 2008 64 bit Enterprise, we are trying to limit concurrent user login using limit login but unfortunetely always fail. ... I'm one of the people that Paul was referring to who has written a script to control concurrent sessions. ... It currently prevents regular users from logging in more than once by first warning them of where their other session exists and then uses WMI to log the user off forcefully. ... For admins who log in to Windows Server, a separate perl script that ties into a 3rd party perl module must be used because for some reason WMI on Server is ignored. ...
    (microsoft.public.windows.server.active_directory)
  • RIS prestaging problem
    ... When trying to prestage Windows XP clients in a Windows 2003 Server ... The script also sets the Remote ...
    (microsoft.public.win2000.setup)
  • Re: Samba - FC7 / Windows XP
    ... server, but when I run net view on Windows, I get an "Error 53" (The ... Server role: ROLE_STANDALONE ... %password and smbclient -L server -Uroot%password all give the same ... I get a System 53 error (network path not found). ...
    (comp.os.linux.networking)