SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
(solved, sort of) was: Re: Excludes causes all backups to f
Author Message
Post (solved, sort of) was: Re: Excludes causes all backups to f 
-----BEGIN PGP SIGNED MESSAGE-----
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 | ..Neutral||||||:...Neutral||||||:.. | kcurrie
~ 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-----

Post (solved, sort of) was: Re: Excludes causes all backups to f 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Earlier today I built the same version (sync-HEAD-20040728-1717GMT-2.6.2) on
cygwin (XP/w2k) and
get the exact same result/error.

..time to look for a later CVS I guess..


- --
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Kevin Currie | | | |
~ | .|||. .|||. | Email:
~ Cisco Systems | ..Neutral||||||:...Neutral||||||:.. | kcurrie
~ 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

iD8DBQFBDu4tPt/WS5aO4BwRAprIAKDW3rQ0eVU8NJT56mUDJOgQzN6LRgCggH7c
MDGhi4cdJ6+eHBheFdzEzmY=
=H6Vd
-----END PGP SIGNATURE-----

Post (solved, sort of) was: Re: Excludes causes all backups to f 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I took a quick look at the CVS logs, and saw mentions of +/-:

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/

[success]

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/

[success]

Killed by signal 2.
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)

fail!

Looks like the syntax was changed, but the internal help not updated yet.



Kevin Currie wrote:
| Earlier today I built the same version
| (sync-HEAD-20040728-1717GMT-2.6.2) on
| cygwin (XP/w2k) and
| get the exact same result/error.
|
| ..time to look for a later CVS I guess..
|
|
| --
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ~ Kevin Currie | | | |
| ~ | .|||. .|||. | Email:
| ~ Cisco Systems | ..Neutral||||||:...Neutral||||||:.. | kcurrie
| ~ Austin, Texas |---------------------------| (at) cisco.com
| ~~~~~~~~GPG/PGP public key: https://undertow.2y.net/kcurrie.pub ~~~~~~~~~
|
|

- --
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Kevin Currie | | | |
~ | .|||. .|||. | Email:
~ Cisco Systems | ..Neutral||||||:...Neutral||||||:.. | kcurrie
~ 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

iD8DBQFBDvAyPt/WS5aO4BwRAlJEAJ0Y0Bcwm0mf2xU2cySS+dpP7y/G3gCgriBm
KAZJHFm2K4U3p/kA/d2iiQo=
=iqHA
-----END PGP SIGNATURE-----

Post (solved, sort of) was: Re: Excludes causes all backups to f 
Kevin Currie writes:

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)

fail!

Looks like the syntax was changed, but the internal help not updated yet.

Thanks for the detective work.

I'm surprised rsync would change in a manner that would not be
backward compatible. I follow the rsync mail list, but maybe
not closely enough.

Does this bug happen with CVS rsync talking to CVS rsync? If so, that's
something we should take up on the rsync mail list. Perhaps I need to
delve into the CVS code a little to understand what has changed.

Craig


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post (solved, sort of) was: Re: Excludes causes all backups to f 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Craig Barratt wrote:

| I'm surprised rsync would change in a manner that would not be
| backward compatible. I follow the rsync mail list, but maybe
| not closely enough.
I am too!

| Does this bug happen with CVS rsync talking to CVS rsync? If so, that's
| something we should take up on the rsync mail list. Perhaps I need to
| delve into the CVS code a little to understand what has changed.
Yes, it happens with CVS->CVS, as well as release->CVS I believe too.


- --
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Kevin Currie | | | |
~ | .|||. .|||. | Email:
~ Cisco Systems | ..Neutral||||||:...Neutral||||||:.. | kcurrie
~ 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

iD8DBQFBD71IPt/WS5aO4BwRAmZ/AKCl3tjGltRdKnycSbB/4QWr5VXIUgCg7mIP
wb2r1jhL50nvGBWEoq9Y7MM=
=G80Y
-----END PGP SIGNATURE-----

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB