rsync hard link problems

2001-03-09 Thread sarahwhispers


Hi, 

I'm having difficulty using rsync to synchronize 
hard-linked files.  In some cases, it seems to 
transfer a hard-linked file again even though 
the one of the other hard-linked files has already 
been copied.  

I looked through the FAQ, but didn't see this 
listed anywhere.  

I'm working on a 2.2.16 linux machine. 
I have rsync version 2.4.1.

Here's a shell script that illustrates the problem:

  -  begin script  
  #!/bin/sh

  sdir=~/tmp/foo
  dhost=ptdlr2828
  ddir=~/tmp/foo_r

  # create source files 
  # - they're all hard linked to each other
  rm $sdir/[123]bar
  mkdir -p $sdir
  rsh $dhost mkdir -p $ddir
  rsh $dhost rm $ddir/[123]bar
  ls -l / >$sdir/1bar
  ln $sdir/1bar $sdir/2bar
  ln $sdir/1bar $sdir/3bar

  # Start by pushing the 'middle' file to dest
  rsync -aH $sdir/2bar $dhost:$ddir

  # Sync different combinations of files and see what 
  # gets transferred.

  # These send 1bar across even though it doesn't need to 
  # be sent.  Seems incorrect to me.
  # - cmd line order doesn't seem to matter
  cmd1="rsync -aHv $sdir/1bar $sdir/2bar $dhost:$ddir"
  cmd2="rsync -aHv $sdir/2bar $sdir/1bar $dhost:$ddir"
  echo "==="
  echo $cmd1
  $cmd1
  rsh $dhost rm $ddir/1bar
  echo "--"
  echo $cmd2
  $cmd2


  # These don't send 3bar across.  Seems correct.
  # - again, cmd line order doesn't seem to matter
  cmd1="rsync -aHv $sdir/2bar $sdir/3bar $dhost:$ddir"
  cmd2="rsync -aHv $sdir/3bar $sdir/2bar $dhost:$ddir"
  echo "==="
  echo $cmd1
  $cmd1
  rsh $dhost rm $ddir/3bar
  echo "--"
  echo $cmd2
  $cmd2
  -  end script  

The *end* result is always correct, but in the first
case, 1bar gets sent across, but in the second case 
3bar is not sent.  It seems to have to do with the 
fact that 1 comes before 2 and 3 comes after 2.

I want to use rsync to transfer large trees of files 
with lots of hard links in them. My plan is to start 
with one or two directories in the tree, then expand 
to cover more and eventually all.

Obviously if I just started by copying all the files at
once, it would be ok, but that's not currently an
option.

Anyone out there know what's going wrong?  Can I do 
something different to fix it?  Is it a bug?  

Thanks!

Sarah Tisdale


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




LFS support on AIX 4.3.3

2001-03-09 Thread Willeat, Todd

I've installed rsync 2.4.6 on 2 DEC Alphas and 1 IBM RS/6000. I need to
transfer some files that are > 2.5GB. Everything works find between the
DECs, but not with the IBM. On the IBM, I have a problem with files over
2GB. I have successfully concatenated several files into 1 file approx
2.5GB, so there should be not filesystem or ulimit problems. I used IBM C
for AIX, V5 to compile it. Can anyone tell me how to compile rsync to handle
files over 2GB on the IBM?

Todd Willeat
UNIX Administrator

 <<...OLE_Obj...>> 
40 Corporate Center
425 South Woods Mill Road
Chesterfield, Missouri 63017-3492
 Phone: (314) 214-2329
 Fax: (314) 214-8202
E-Mail:  [EMAIL PROTECTED]
Web:  http://www.mercyhealthplans.com/






Re: rsync Logging

2001-03-09 Thread tim . conway

Use the  --log-format=FORMAT option.  It's explained in the rsyncd.conf man page.
Speaking of rsyncd.conf, rsync run as daemon logs to a configurable syslog facility.  
If you need to get plain rsh/ssh-transported rsync to syslog, you'll have to feed the 
output to logger or a similar utility.


Tim Conway
[EMAIL PROTECTED]
303.682.4917
Philips Semiconductor - Colorado TC
1880 Industrial Circle
Suite D
Longmont, CO 80501





[EMAIL PROTECTED]@[EMAIL PROTECTED] on 03/09/2001 09:42:13 AM
Sent by:[EMAIL PROTECTED]
To: [EMAIL PROTECTED]@SMTP
cc:  
Subject:rsync Logging
Classification: 

Folks

I am evaluating rsync v2.4.6 (not rsyncd) for distributing configuration
files to multiple
mail servers.  All seems to be very good except for the logging
capabilities.  I can see
how to get a basic log entry on stdout but how can I get this sent to syslog
in the
appropriate format?  Also, does rsync log errors in the same format, eg if
it fails to
transfer a file to the remote server?  And lastly, when creating a log
entry, it displays a literal
%h and %a rather than the actual hostname and IP address of the remote
server.

Any help is much appreciated.

Regards

Brian








rsync Logging

2001-03-09 Thread brian . wilkinson

Folks

I am evaluating rsync v2.4.6 (not rsyncd) for distributing configuration
files to multiple 
mail servers.  All seems to be very good except for the logging
capabilities.  I can see 
how to get a basic log entry on stdout but how can I get this sent to syslog
in the 
appropriate format?  Also, does rsync log errors in the same format, eg if
it fails to 
transfer a file to the remote server?  And lastly, when creating a log
entry, it displays a literal 
%h and %a rather than the actual hostname and IP address of the remote
server.

Any help is much appreciated.

Regards

Brian