Hash: SHA1
Craig Barratt wrote:
| The --exclude option certainly is a sender-side option, so I'm sure
| that's not the problem.
|
| The most likely issue is --checksum-seed=32761. The --checksum-seed
| option is not a standard option in rsync. It is in rsync CVS, but not
| 2.6.2. You need to make sure you are running a patched remote rsync for
| that option to work (there is a patch for rsync on the BackupPC SF site).
~ Actually that's not the problem-- I had this before I was using seed,
and I'd already moved to CVS rsync:
kcurrie < at > box866:~$ rsync 2>&1 |egrep 'seed|HEAD'
rsync version sync-HEAD-20040728-1717GMT-2.6.2 protocol version 28
~ --checksum-seed=NUM set block/file checksum seed
| Could you re-check whether it is really the --checksum-seed option and
| not the exclude option that is causing the problem?
Here's it running without seed:
started incr dump, share=/etc
Running: /usr/bin/ssh -q -x -l root free /usr/bin/rsync --server --sender
- --numeric-ids --perms --owner --group --devices --links --times
- --block-size=2048 --one-file-system --recursive . /etc/
Xfer PIDs are now 8139
xferPids 8139
Xfer PIDs are now 8139,5497
xferPids 8139,5497
- ---
If you don't have the CVS rsync you get this error instead:
started incr dump, share=/etc
Running: /usr/bin/ssh -q -x -l root free /usr/bin/rsync --server --sender
- --numeric-ids --perms --owner --group --devices --links --times
- --block-size=2048 --one-file-system --recursive --checksum-seed=32761 . /etc/
Xfer PIDs are now 10102
xferPids 10102
Fatal error (bad version): rsync: on remote machine: --checksum-seed=32761:
unknown option
fileListReceive() failed
Done: 0 files, 0 bytes
Got fatal error during xfer (fileListReceive failed)
..now onto the excludes:
started incr dump, share=/etc
Running: /usr/bin/ssh -q -x -l root free /usr/bin/rsync --server --sender
- --numeric-ids --perms --owner --group --devices --links --times
- --block-size=2048 --one-file-system --recursive --checksum-seed=32761 --exclude
/var/cache/apt/archives . /etc/
Xfer PIDs are now 1767
xferPids 1767
Fatal error (bad version): rsync: Error parsing options: option may be supported
on client but not on server?
fileListReceive() failed
Done: 0 files, 0 bytes
Actually its tiresome doing all this stopping/starting/killing the lock file, so
I just tried to running the actual commands it runs, and found the problem,
lookie here:
(verify access):
backuppc < at > box866:~$ ssh free -l root id
uid=0(root) gid=0(root) groups=0(root),44(video)
backuppc < at > box866:~$
backuppc < at > box866:~$ /usr/bin/ssh -q -x -l root free /usr/bin/rsync --server
- --sender --numeric-ids --perms --owner --group --devices --links --times
- --block-size=2048 --one-file-system --recursive --exclude /tmp . /etc/
rsync: Error parsing options: option may be supported on client but not on server?
rsync error: syntax or usage error (code 1) at main.c(1054)
backuppc < at > box866:~$
..then inspiration struck, and I thought I'd try the original rsync binary
instead of cvs:
backuppc < at > box866:~$ /usr/bin/ssh -q -x -l root free /usr/bin/rsync.orig --server
- --sender --numeric-ids --perms --owner --group --devices --links --times
- --block-size=2048 --one-file-system --recursive --exclude /tmp . /etc/
success!! It appears my build of:
sync-HEAD-20040728-1717GMT-2.6.2 protocol version 28
doesn't like that exclude option!
It doesn't appear the options have changed in the program:
free:~# rsync 2>&1 |egrep 'version|exclude'
rsync version sync-HEAD-20040728-1717GMT-2.6.2 protocol version 28
~ --delete-excluded also delete excluded files on the receiving side
~ -C, --cvs-exclude auto ignore files in the same way CVS does
~ --exclude=PATTERN exclude files matching PATTERN
~ --exclude-from=FILE exclude patterns listed in FILE
~ --include=PATTERN don't exclude files matching PATTERN
~ --include-from=FILE don't exclude patterns listed in FILE
~ --version print version number
free:~# rsync.orig 2>&1 |egrep 'version|exclude'
rsync version 2.6.2 protocol version 28
~ --delete-excluded also delete excluded files on the receiving side
~ -C, --cvs-exclude auto ignore files in the same way CVS does
~ --exclude=PATTERN exclude files matching PATTERN
~ --exclude-from=FILE exclude patterns listed in FILE
~ --include=PATTERN don't exclude files matching PATTERN
~ --include-from=FILE don't exclude patterns listed in FILE
~ --version print version number
free:~#
.. I'll try a rebuild, if that doesn't work I'll pull the latest code
and get back to you (either way).
- --
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Kevin Currie | | | |
~ | .|||. .|||. | Email:
~ Cisco Systems | ..
~ Austin, Texas |---------------------------| (at) cisco.com
~~~~~~~~GPG/PGP public key: https://undertow.2y.net/kcurrie.pub ~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBDuy2Pt/WS5aO4BwRAn46AJ9++NoeKSKQmFLs9hvbqRyWNf0TQQCePzKF
q1L6fWFedFOyrLHVlqtxJHE=
=1g64
-----END PGP SIGNATURE-----
