Trying to do something like this, in Ubuntu 11.10/12.04:
Location A
(work occurs changing files)
rsync --write-batch /media/bkup/foo.rsb /path/to/files/ /path/to/copy/
Location B
rsync --read-batch /media/bkup/foo.rsb /path/to/files/
rsync --read-batch /media/bkup/foo.rsb /path/to/copy/
(work occurs changing files)
rsync --write-batch /media/bkup/foo.rsb /path/to/files/ /path/to/copy/
Location A
rsync --read-batch /media/bkup/foo.rsb /path/to/files/
rsync --read-batch /media/bkup/foo.rsb /path/to/copy/
return to top
there are two directories I'm trying to do this with, the one that is
"just files", and symlinks etc.,
works ok, but the one the includes /home/ hangs during read-batch.? I sort of
wonder if it's related to
strange things in the filesystem like .gvfs and filesystem mount points - just
speculation.
using a recent compile of rsync:
git log? | head -3
commit d51a3adb4fca3e6b1b046c6e570828f3bca8fe36
Author: Wayne Davison <------- at samba.org>
Date:?? Sat May 5 08:01:09 2012 -0700
cat rsync_dbg.sh
#!/bin/sh
ulimit -c unlimited
# Some systems have "truss" or "tusc" instead of
"strace".
# The -f option tells strace to follow children too.
# The -o option tells strace where to send its output.
strace -f -o /tmp/rsync-$$.out /home/tbrown/Package/rsync/rsync/rsync
"${@}"
. rsync_dbg.sh --exclude .smb --exclude .gvfs --exclude 'Ubuntu One'
--exclude 'Dropbox' --one-file-system --verbose --archive --progress
--human-readable --archive --delete --ignore-errors --read-batch
/media/bkup64/bkup/trans/usr1.rsb /mnt/usr1/usr1/
(the same flags were used for the write batch)
after a few files being synced, everything seems to stop and dstat confims
nothing is happening.
netstat -p | grep sync
unix? 3????? [ ]???????? STREAM???? CONNECTED???? 268012?? 3478/rsync?????????
unix? 3????? [ ]???????? STREAM???? CONNECTED???? 268011?? 3477/rsync?????????
unix? 3????? [ ]???????? STREAM???? CONNECTED???? 272995?? 3477/rsync?????????
unix? 3????? [ ]???????? STREAM???? CONNECTED???? 272994?? 3477/rsync?????????
Ctrl-C in original terminal
home/tbrown/.cwe.remind
????????? 4.85K 100%?? 94.69kB/s??? 0:00:00 (xfr#10, ir-chk=2562/5267)
^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(613)
[receiver=3.1.0dev]
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(613)
[generator=3.1.0dev]
I don't want to post the output of strace to the list, it contains listings
of contents of /home/*
but I'll send it to a developer if they ask for it.
Cheers -Terry
rsync: [receiver] write error: Broken pipe (32)