Koozali.org: home of the SME Server

rsync error

Lloyd keen

rsync error
« on: March 07, 2001, 02:59:06 PM »
I keep getting the following error message when using rsync:

bash-2.04$ cp e-smith-4.1.iso e-smith-4.1.1.iso
bash-2.04$ rsync -avv --stats \
> rsync://ftp.planetmirror.com/pub/e-smith/e-smith-4.1.1/e-smith-4.1.1.iso

  Welcome to PlanetMirror's rsync service.

  You can find a web front end to this archive at:

       http://www.planetmirror.com


@ERROR: Unknown module 'pub'
 
Can anyone shed any light on this? BTW Planetmirror doesn't appear to have the 4.1.1.iso up yet, so I also tried
 
bash-2.04$ rsync -avv --stats \
> rsync://ftp.e-smith.com/pub/e-smith/e-smith-4.1.1/iso/e-smith-4.1.1.iso
@ERROR: Unknown module 'pub'
bash-2.04$

Jason Miller

Re: rsync error
« Reply #1 on: March 07, 2001, 05:40:57 PM »
Hi Lloyd,

Instead of this:

bash-2.04$ rsync -avv --stats \
  > rsync://ftp.planetmirror.com/pub/e-smith/e-smith-4.1.1/e-smith-4.1.1.iso

Try this:

bash-2.04$ rsync -avv --stats \
  > rsync://ftp.planetmirror.com/e-smith/e-smith/e-smith-4.1.1/e-smith-4.1.1.iso

(replace the 'pub' with another e-smith').

Rsync works a little different than ftp.  We have to name the module where the directory lays and I believe we call it e-smith instead of pub.  

I am never sure so I usually do this to determine my directories:

Step 1:

bash-2.04$ rsync rsync://ftp.e-smith.com/        
e-smith           e-smith ftp site

> indicates there is only one module (named e-smith)

Step 2:

bash-2.04$ rsync rsync://ftp.e-smith.com/e-smith/*
skipping directory /e-smith
skipping directory /fbp

> gets the directory structure for that 'e-smith' module.

Step 3-n:

bash-2.04$ rsync rsync://ftp.e-smith.com/e-smith/e-smith/*
skipping directory /e-smith/contrib
skipping directory /e-smith/dev
skipping directory /e-smith/e-smith-4.0
skipping directory /e-smith/e-smith-4.1
skipping directory /e-smith/e-smith-4.1.1
skipping directory /e-smith/old-releases
-rw-rw-r--         258 2001/02/26 18:17:48 README
lrwxrwxr-x          13 2001/02/22 14:00:07 current

> continue to get the directory structure for that 'e-smith' module until you find the one you are looking for.

Regards,

Jason

Darrell May

Re: rsync error
« Reply #2 on: March 07, 2001, 08:20:00 PM »
Unfortunately the instructions in the e-smith site are not correct.  Visit this page for correct instructions:

http://netsourced.com/e-smith/howto-rsync.html

Regards,

Darrell

Lloyd keen

Re: rsync error
« Reply #3 on: March 07, 2001, 10:27:47 PM »
Would this be correct for and upgrade from 4.1 to 4.1.1?

bash-2.04$ rsync -avv --progress --stats rsync://ftp.e-smith.com/e-smith/e-smith/e-smith-4.1.1/iso/e-smith-4.1.1.iso
receiving file list ... done
-rw-rw-r--   351399936 2001/02/17 11:31:06 e-smith-4.1.1.iso

Number of files: 1
Number of files transferred: 0
Total file size: 351399936 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 52
Total bytes written: 116
Total bytes read: 88

wrote 116 bytes  read 88 bytes  58.29 bytes/sec
total size is 351399936  speedup is 1722548.71

Jason Miller

Re: rsync error
« Reply #4 on: March 07, 2001, 10:36:00 PM »
You need to have a 'destination' for the file to go.

I.e.

bash-2.04$ rsync -avv --progress --stats rsync://ftp.e-smith.com/e-smith/e-smith/e-smith-4.1.1/iso/e-smith-4.1.1.iso .

(I realize that the dot (.) on its own here is hard to read but it is important so I'll reiterate below):

bash-2.04$ rsync -avv --progress --stats rsync://ftp.e-smith.com/e-smith/e-smith/e-smith-4.1.1/iso/e-smith-4.1.1.iso

-> where is replaced with a period (.)

In your case, all you were getting was a list of the files there, not downloading/rsyncing it.

That is assuming you are running rsync from the directory where the iso file you already have (renamed of course to e-smith-4.1.1.iso) stored.  If you have the original .iso file located in a library ibay, you would do something like this:

bash-2.04$ rsync -avv --progress --stats rsync://ftp.e-smith.com/e-smith/e-smith/e-smith-4.1.1/iso/e-smith-4.1.1.iso /home/e-smith/files/ibays/library/files/e-smith-4.1.1.iso

The basic stuff to remember is this:

rsync [options] rsync://[site]/[module][subdirectories] [destination]

Hope that helps.

Jason