IT WORKS!

Sorry for the shouting, but all my problems is now solved. Just to describe
the setup; The backup consists of two scripts, one Linux based shell script,
and on PC based Botch file. The PC script only sets up a share ( this is the
windows 2000 client version ), and uses ssh to start the server side script,
which runs rsync. The setup may seem a bit complicated, but it offers some
advantages; The user PC does not need to write to a share; it is fast,
traversing 1.5GByte of files takes 20 seconds, and the backup runs at 1Mbyte
/s ( on a 100Mbit LAN ). With Daves --compate-dest suggestion, the users can
look at a a daily history of changed files ( more Wow ). The neat thing is
that I can make the script generic and run it suid root ( at present,
smbmount need to be suid root ) for the mount to work.

The backup script is started from the users startup folder, but it could
also have been started from the Registry.

Thanks for the help.

Hans E.

Unix Script ( simple version )
#!/bin/sh
#
# Script for issuing msdos commands for system backup.
#
# This script takes one argument; the netbios name of the client.
# and the share name.
#


DESTR=$HOME/backup
SRCR=client
FULL=$HOME/history/2001-Feb-21

# Set up the client
echo Mounting client share
smbmount //$1/backup $HOME/client -o
ro,username=$LOGNAME,password=God,ip=isme

# This is the backup section, all in one go :)
rsync -va --compare-dest=$FULL $SRCR/Documents\ and\ Settings/username ....
rsync -va --compare-dest=$FULL $SRCR/Downloads $DESTR
rsync -va --compare-dest=$FULL $SRCR/Media $DESTR

# Tidyup
umount $HOME/client

Botch script ( w2k version ).
break off
REM The sharename must be backup since the client can not access
REM the fstab file under UNIX.
net share backup=d:\
ssh minder ./shbackup %USERDOMAIN%
net share backup /delete



Reply via email to