problems with --read-batch and --write-batch with --files-from

Karsten Scheibler rsyncml at unusedino.de
Mon Jun 21 19:57:13 GMT 2004


Hello,

I want to use the --read/write-batch options, but i have problems to do so.
The shell script [1] leads to the following error:

[sender] expand file_list to 131072 bytes, did move
delta-transmission disabled for local transfer or --whole-file
file1
rsync: writefd_unbuffered failed to write 64 bytes: phase "unknown":
Datenübergabe unterbrochen (broken pipe)
rsync error: error in rsync protocol data stream (code 12) at io.c(836)

--[1]--
#!/bin/bash

DIR="testdir-$(date '+%Y%m%d%H%M%S')"
mkdir "$DIR" &&
cd "$DIR" &&
mkdir src dest &&
(cd src && dd if=/dev/zero of=file1 bs=1024 count=1024) &&
(cd dest && dd if=/dev/zero of=file1 bs=1024 count=512) &&
tar -c -z -f data.tar.gz src dest &&
rsync --write-batch=data -a -v src/ dest/ &&
find . &&
rm -rf src dest &&
tar -x -z -f data.tar.gz &&
echo --- &&
rsync --read-batch=data -a -v -v dest/
-------

Additionally if i use the --files-from option with --write-batch and the given
prefix is relative 3 of 4 files will be written to the src/ dir. The find in
the shell script [2] gives the following:

.
./src
./src/file1
./src/data.rsync_flist
./src/data.rsync_csums
./src/data.rsync_delta
./dest
./dest/file1
./data.tar.gz
./data.rsync_argvs

--[2]--
#!/bin/bash

DIR="testdir-$(date '+%Y%m%d%H%M%S')"
mkdir "$DIR" &&
cd "$DIR" &&
mkdir src dest &&
(cd src && dd if=/dev/zero of=file1 bs=1024 count=1024) &&
(cd dest && dd if=/dev/zero of=file1 bs=1024 count=512) &&
tar -c -z -f data.tar.gz src dest &&
echo file1 | rsync --write-batch=data --files-from=- -a -v -v src/ dest/ &&
find . &&
rm -rf src dest &&
tar -x -z -f data.tar.gz &&
echo --- &&
rsync --read-batch=data -a -v -v dest/
-------


Thanks,

karsten


More information about the rsync mailing list