*TEST* rsync package [Was: Please test rsync-2.5.6pre2]

2003-01-22 Thread Lapo Luchini
Dave Dykstra wrote:


The second rsync-2.5.6 pre-release version is now available at:

   http://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre2.tar.gz
   ftp://rsync.samba.org/pub/rsync/preview/rsync-2.5.6pre2.tar.gz
   rsync://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre2.tar.gz

There's also a corresponding '.sig' file that contains a gpg signature
of the file; the public key is available on the pgp keyservers.
 

Just to calm down, at least a little, the guilt I feel for not having 
enough time to test rsync port... I created a test release package, 
made with the very script that I use to create actual cygwin rsync packages.

It's available at:
http://www.lapo.it/tmp/rsync-2.5.6pre2-1.tar.bz2
http://www.lapo.it/tmp/rsync-2.5.6pre2-1-src.tar.bz2

Please notice that this is purely a *test*, I have done *NO* test 
whatsoever upon it.
You've been warned.
It contains no patches applied at all (except for the usual one to 
include Cygwin's README in make install).

As can be done with all my recent packages, it supports signature 
verification, should produce something like that:

$ ./rsync-2.5.6pre2-1.sh checksig
SCRIPT signature follows:
gpg: Signature made Wed Jan 22 16:01:44 2003 using DSA key ID C8F252FB
gpg: Good signature from Lapo Luchini [EMAIL PROTECTED]
gpg: aka drBrain ICQ:529796
gpg: aka [jpeg image of size 2814]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:  There is no indication that the signature belongs to the 
owner.
ORIGINAL PACKAGE signature follows:
gpg: Signature made Tue Jan 21 05:06:42 2003 using DSA key ID 189C0E94
gpg: Good signature from Dave Dykstra [EMAIL PROTECTED]
gpg: aka Dave Dykstra [EMAIL PROTECTED]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:  There is no indication that the signature belongs to the 
owner.
Primary key fingerprint: 1B0F 8F77 0B92 A467 2059  FF82 34A4 A0A7 189C 0E94
PATCH signature follows:
gpg: Signature made Wed Jan 22 16:08:34 2003 using DSA key ID C8F252FB
gpg: Good signature from Lapo Luchini [EMAIL PROTECTED]
gpg: aka drBrain ICQ:529796
gpg: aka [jpeg image of size 2814]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:  There is no indication that the signature belongs to the 
owner.

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP  X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)


--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html


Rsyncd - Help me

2003-01-22 Thread Breno Cardoso Perucchi



Hello,

I'm trying to do my rsync to copy a mirror of my 
site in another webserver.
I am trying to use RSYNCD .
How I'll do for my rsync to copy my site website in 
the mirror ? Which is a command to copy themirror with the 
password ?
I've this websites about rsync 
http://sunsite.dk/info/guides/rsync/rsync-mirroring.html
http://rsync.samba.org

Somebody could help me? or Link ? Doc ? Howto 
?


This is my rsyncd.conf
/usr/local/etc/rsyncd.conf

log file = /var/log/rsyncd.logpid file = 
/var/run/rsyncd.pidlock file = /var/run/rsync.lock

[rsyncd] path = 
/usr/local/www/data-dist/ comment = Rsync Server 
use chroot = no max connections = 4 uid = 
nobody gid = nobody read only = 
yes list = yes auth users = 
rsyncd secrets file = /usr/local/etc/rsyncd.scrt

/usr/local/etc/rsyncd.scrt
rsyncd:rsyncd

bash-2.05b# rsync -a 
10.0.0.1:: 
rsyncd Rsync 
Serverbash-2.05b# rsync -a 10.0.0.1::rsyncdPassword: @ERROR: auth 
failed on module rsyncdrsync: connection unexpectedly closed (90 bytes read 
so far)rsync error: error in rsync protocol data stream (code 12) at 
io.c(150)

Breno Cardoso Perucchi[EMAIL PROTECTED]


Rsyncd - Server- Copy a mirror- Help me

2003-01-22 Thread Breno Cardoso Perucchi




Hello,

I'm trying to do my rsync to copy a mirror of my 
site in another webserver.
I am trying to use RSYNCD .
How I'll do for my rsync to copy my site website in 
the mirror ? Which is a command to copy themirror with the 
password ?
I've this websites about rsync 
http://sunsite.dk/info/guides/rsync/rsync-mirroring.html
http://rsync.samba.org

Somebody could help me? or Link ? Doc ? Howto 
?


This is my rsyncd.conf
/usr/local/etc/rsyncd.conf

log file = /var/log/rsyncd.logpid file = 
/var/run/rsyncd.pidlock file = /var/run/rsync.lock

[rsyncd] path = 
/usr/local/www/data-dist/ comment = Rsync Server 
use chroot = no max connections = 4 uid = 
nobody gid = nobody read only = 
yes list = yes auth users = 
rsyncd secrets file = /usr/local/etc/rsyncd.scrt

/usr/local/etc/rsyncd.scrt
rsyncd:rsyncd

bash-2.05b# rsync -a 
10.0.0.1:: 
rsyncd Rsync 
Serverbash-2.05b# rsync -a 10.0.0.1::rsyncdPassword: @ERROR: auth 
failed on module rsyncdrsync: connection unexpectedly closed (90 bytes read 
so far)rsync error: error in rsync protocol data stream (code 12) at 
io.c(150)

Breno Cardoso Perucchi[EMAIL PROTECTED]


Re: Rsyncd - Help me

2003-01-22 Thread Dave Dykstra
Look for errors in /var/log/rsyncd.log.  For security reasons they are
not all passed to the client.

- Dave

On Wed, Jan 22, 2003 at 06:52:33PM -0200, Breno Cardoso Perucchi wrote:
 Hello,
 
 I'm trying to do my rsync to copy a mirror of my site in another webserver.
 I am trying to use RSYNCD .
 How I'll do for my rsync to copy my site website in the mirror ?  
 Which is a command to copy the mirror with the password ?
 I've this websites about rsync 
 http://sunsite.dk/info/guides/rsync/rsync-mirroring.html
 http://rsync.samba.org
 
 Somebody could help me? or Link ? Doc ? Howto ?
 
 
 This is my rsyncd.conf
 /usr/local/etc/rsyncd.conf
 
 log file = /var/log/rsyncd.log
 pid file = /var/run/rsyncd.pid
 lock file = /var/run/rsync.lock
 
 [rsyncd]
path = /usr/local/www/data-dist/
comment = Rsync Server
use chroot = no
max connections = 4
uid = nobody
gid = nobody
read only = yes
list = yes
auth users = rsyncd
secrets file = /usr/local/etc/rsyncd.scrt
 
 /usr/local/etc/rsyncd.scrt
 rsyncd:rsyncd
 
 bash-2.05b# rsync -a 10.0.0.1::
 rsyncd  Rsync Server
 bash-2.05b# rsync -a 10.0.0.1::rsyncd
 Password: 
 @ERROR: auth failed on module rsyncd
 rsync: connection unexpectedly closed (90 bytes read so far)
 rsync error: error in rsync protocol data stream (code 12) at io.c(150)
 
 Breno Cardoso Perucchi
 [EMAIL PROTECTED]
 
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html



Re: Q : Rsync verbose message

2003-01-22 Thread Yuji Sato
Thank you for answer.

I'd like to profile to step of rsync process.

This is my crontab.
0 0 * * * /usr/bin/rsync -avx --delete --exclude=/.snapshot/ 
/mnt/fileserver/ /mirror/fileserver/
#/mnt/fileserver is nfs now. but I'll export outside LAN.

I'm looking for more effective plan.
Small(Mirror Disk Space) Quick and Redundant

Yujis

--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html


[PATCH] open O_TEXT and O_BINARY for cygwin/windows

2003-01-22 Thread Ville Herva
  perhaps you would want to consider the force binary open for data files
  on CYGWIN -patch I sent ages ago? I feel it's quite important, and to
  me it never makes sense to open data files in ascii (CR/LF translation
  mode) nor config files in BINARY mode (opening them in ascii makes it
  possible to edit them with both NOTEPAD etc and the unix line ending
  compliant cygwin editors.)
  
  See the thread starting at:
  
  
http://groups.google.com/groups?hl=enlr=ie=UTF-8oe=utf-8threadm=a4vfnh%242ec%241%40FreeBSD.csie.NCTU.edu.twrnum=1prev=/groups%3Fq%3Drsync%2Bon%2Bcygwin%2B-%2Btextmode%2Bconfig%2Bfiles%26num%3D50%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3Dutf-8%26sa%3DN%26tab%3Dwg
  
  I'm mostly talking about (4) - others are not that important.

On Wed, Jan 22, 2003 at 03:53:27PM -0600, you [Dave Dykstra] wrote:
 Could you please port the patch to 2.5.6pre2 and post it to the mailing
 list?  

Here it is.

In short: on Cygwin you can mount volumes as text or binary. For text mounts
CR/LF-CR translation is done on the fly, binary mounts do not alter the
data. For applications that deal with raw data (gzip, tar, md5sum, cp,
rsync) it makes sense to access the data in binary always (and actually
rsync does nowadays, the O_BINARY flag is set in do_open). On the other hand
it makes sense to open config files in text so that the user can change
them with windows editors - the CR/LF translation will do no harm even if
the file has unix line endings.

This batch adds a few O_TEXT and O_BINARY flags to *open() calls - files
that are obviously text are opened as such; data files are opened as
binary.

- Files batch.c checksum.c generator.c receiver.c sender.c util.c use
  do_open which does O_BINARY already (which has chanced since I originally
  made the patch years ago), so no need to touch those. Other than that 
  I went through all open, fdopen, and fopen calls and tried to 
  add either O_TEXT or O_BINARY where it made sense.
- O_BINARY and O_TEXT are defined in rsync.h unless they are available
  on the platform:

   +#if !defined(O_TEXT)
   +#define O_TEXT 0
   +#endif
   +#if !defined(O_BINARY)
   +#define O_BINARY 0
   +#endif

- I also use fopen(filename, rt). I _think_ that all fopen implementations
  should ignore t unless they recognize it. At least linux does (it
  seems to ignore all chars it doesn't recognize. rt is one of the
  alternatives Chris Faylor recommends for CYGWIN:

  http://www.cygwin.com/ml/cygwin/2000-10/msg00213.html:
   You do that one of three ways:
  
   open (foo, O_RDONLY | O_TEXT);
   fopen (foo, rt);
   setmode (fd, O_TEXT);

  rt one is the only one for FILEs (and setmode doesn't even exists on
  all other platforms AFAICT.

  man fopen says:

   The mode string can also include the letter  ``b''  either
   as  a last character or as a character between the characĀ­
   ters in any of the two-character strings described  above.
   This  is  strictly for compatibility with ANSI X3.159-1989
   (``ANSI C'') and has no effect; the ``b''  is  ignored  on
   all  POSIX  conforming  systems,  including Linux.  (Other
   systems may treat text files and binary files differently,
   and adding the ``b'' may be a good idea if you do I/O to a
   binary file and expect that your program may be ported  to
   non-Unix environments.)

  So I would hope that t is handled the same way.

  Anyway, if someone knows better, please tell.

Patch attached - compiled, briefly tested (the previous incarnations tested
pretty extensively.) It doesn't alter the behaviour on platforms that don't
do O_BINARY and O_TEXT differently so I thinks it should be quite safe to
apply.


-- v --

[EMAIL PROTECTED]

diff -Naur --show-c-function --exclude='*.o' --exclude='*.exe' --exclude=Makefile 
--exclude='*~' rsync-2.5.6pre2.ORIG/authenticate.c rsync-2.5.6pre2/authenticate.c
--- rsync-2.5.6pre2.ORIG/authenticate.c 2002-08-01 03:40:13.0 +0300
+++ rsync-2.5.6pre2/authenticate.c  2003-01-23 08:56:09.0 +0200
@@ -82,7 +82,7 @@ static int get_secret(int module, char *
 
if (!fname || !*fname) return 0;
 
-   fd = open(fname,O_RDONLY);
+   fd = open(fname,O_RDONLY | O_TEXT);
if (fd == -1) return 0;
 
if (do_stat(fname, st) == -1) {
@@ -144,7 +144,7 @@ static char *getpassf(char *filename)
 
if (!filename) return NULL;
 
-   if ( (fd=open(filename,O_RDONLY)) == -1) {
+   if ( (fd=open(filename,O_RDONLY | O_TEXT)) == -1) {
rsyserr(FERROR, errno, could not open password file \%s\,filename);
if (envpw) rprintf(FERROR,falling back to RSYNC_PASSWORD environment 
variable.\n);
return NULL;
diff -Naur --show-c-function --exclude='*.o' --exclude='*.exe' --exclude=Makefile 
--exclude='*~' rsync-2.5.6pre2.ORIG/clientserver.c rsync-2.5.6pre2/clientserver.c
--- rsync-2.5.6pre2.ORIG/clientserver.c 2002-08-31 02:30:08.0 +0300
+++ rsync-2.5.6pre2/clientserver.c