log errors using batch reads and writes

Edward King edk at cendatsys.com
Sat Jun 7 01:26:35 EST 2003


I get the following error when "rsync --read-batch" but all the files 
seem to be updated (spot checking):

    etc/stats/FileSize is uptodate
     etc/stats/rsync.log
     file_flist_entry (819) != flist_entry (842)
     rsync error: syntax or usage error (code 1) at batch.c(480)
     rsync: writefd_unbuffered failed to write 65 bytes: phase 
"unknown": Broken pipe
     rsync error: error in rsync protocol data stream (code 12) at io.c(515)

Anyone who can shed light on the cause, or at least a way of testing if 
the sync was successful.

Thanks!

Details:

The last file listed -- rsync.log -- is the log file created when 
writing the batch.  The write command is:

rsync -r -a --partial --bwlimit=20 \
      --suffix=".backup" --backup --delete \
      --write-batch="/smb/Backup/batch" \
      --exclude="*.backup" \
      --exclude="/proc/"  \
      --exclude="/var/"  \
      --exclude="/dev/"  \
      --exclude="/home/"  \
      --exclude="/tmp/"  \
      --exclude="/smb/Backup/" \
      --stats -v /. 192.168.1.100::BACKUP/ > rsync.log 2>&1

I have noticed that the batch.rsync_argvs is limited to 255 characters.  
I restore with the following command:

rsync -r -a --partial \
      --backup --delete \
      --read-batch="batch" \
      --exclude="*.backup" \
      --stats -vv ../backup/ > rsync.log 2>&1


Edward King




More information about the rsync mailing list