Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: nef kho on December 12, 2003, 02:41:43 AM

Title: rsync error
Post by: nef kho on December 12, 2003, 02:41:43 AM
Hi,

I have copy of Darrell May script but when I run it I got the ff. error, any idea if what is wrong with my script below?
----------------------------------------
#!/bin/sh

OLD_ISO="smeserver-6.0beta3-unsupported.iso"
NEW_ISO="smeserver-6.0unsupported.iso"
MIRROR="rsync://rsynctest.sunsite.org.uk/sites/rsync.e-smith.org/e-smith/e-s
mith/releases/6.0/iso"
RSYNC_OPTS="-avv --progress --stats --partials"

if [ -f $OLD_ISO ]; then
      /bin/echo "Renaming old iso to match current release"
      /bin/mv $OLD_ISO $NEW_ISO
else
      /bin/echo "Old iso not found"
fi

/bin/echo "Starting rsync operations..."  
/bin/echo ""
/usr/bin/rsync $RSYNC_OPTS $MIRRORS/$NEW_ISO
/bin/echo ""
/bin/ls -l $NEW_ISO  

----------------------------------------------

[root@e-smith root]# sh synciso.sh
Renaming old iso to match current release
Starting rsync operations...

rsync: --partials: unknown option
rsync error: syntax or usage error (code 1) at main.c(837)

-rw-r--r--    1 root     root     350027776 Aug  1 21:20 smeserver-6.0unsupported.iso
[root@e-smith root]#


tia,

Nef Kho
Title: Re: rsync error
Post by: nigel on December 12, 2003, 03:10:43 AM
Just a stab in the dark here

/usr/bin/rsync $RSYNC_OPTS $MIRRORS/$NEW_ISO

is that a typo ?

/usr/bin/rsync $RSYNC_OPTS $MIRROR/$NEW_ISO
Title: Re: rsync error
Post by: nef kho on December 12, 2003, 04:26:11 AM
thanks, but i still get this error:

[root@e-smith root]# sh synciso.sh
Renaming old iso to match current release
Starting rsync operations...

opening tcp connection to rsynctest.sunsite.org.uk port 873
receiving file list ...
done
client: nothing to do: perhaps you need to specify some filenames or the --recursive option?
rsync error: partial transfer (code 23) at main.c(594)

tia,

nef
Title: Re: rsync error
Post by: jb on December 12, 2003, 04:40:22 AM
Here is what I used from Darrell's last post, and it worked fine for me.

#!/bin/sh
# -----------------------------------------------------------------
# SME6.0B3 to SME6.0 iso rsync script
# -----------------------------------------------------------------
# Copy your old iso to /root
# Edit all the variables below as needed to meet your requirements
# -----------------------------------------------------------------

OLD_ISO="smeserver-6.0beta3-unsupported.iso"
NEW_ISO="smeserver-6.0unsupported.iso"
MIRROR="rsync://rsynctest.sunsite.org.uk/sites/rsync.e-smith.org/e-smith/e-smith/releases/6.0/iso"
RSYNC_OPTS="-avv --progress --stats --partial"

if [ -f $OLD_ISO ]; then
   /bin/echo "Renaming old iso to match current release."
   /bin/mv $OLD_ISO $NEW_ISO
else
   /bin/echo "Old iso not found."
fi

/bin/echo "Starting rsync operation..."
/bin/echo ""
/usr/bin/rsync $RSYNC_OPTS $MIRROR/$NEW_ISO .
/bin/echo ""
/bin/ls -l $NEW_ISO


JB
Title: Re: rsync error
Post by: nef kho on December 12, 2003, 04:51:19 AM
it's working now,  i'd copy and paste it to a file in windows and copy it to sme.

thanks.