Welcome! » Log In » Create A New Profile

rsync error

Posted by Anonymous 
rsync error
July 06, 2016 01:38PM
[quote]On Jun 16, 2016, at 10:04 AM, Terry Barnum <terry < at > dop.com> wrote:

[quote]On Jun 16, 2016, at 5:55 AM, David Cantrell <david < at > cantrell.org.uk> wrote:

On Wed, Jun 15, 2016 at 02:53:17PM -0700, Terry Barnum wrote:

[quote]For some reason the MacBook Pro appears to still be running the old version installed with the OS. I can't find the above main.c path on it. Not sure what's going on. Any ideas?
[/quote]
Depending on the context (an interactive session vs a cron job vs rsync
invoked remotely by another rsync) you'll get a different environment,
and so /usr/local/bin isn't in the $PATH. You need the --rsync-path
option to rsync, so it knows exactly which rsync to run on the remote
host. You can provide that via the rsync_long_args config option in
rsnapshot. And if you only need it on this one host you can do this:

backup what-to-backup where-to-backup +rsync_long_args=--rsync-path=...
[/quote]
Thank you very much David. I'll give it a try today and report back.
[/quote]
My MacOS 10.11 laptop user is back in town and I made the rsync-path change but I'm still seeing errors and no backup is happening.

Here's the conf line:
[quote]backup root < at > MBPuser:/Users/MBPuser/ MBPuser/ +rsync_long_args=--rsync-path=/usr/local/bin/rsync
[/quote]

Here's raw output:
[quote]sync_if_different("/Volumes/Backup/laptops/tmp/",
"/Volumes/Backup/laptops/daily.0/unused1")
/bin/rm -rf /Volumes/Backup/laptops/tmp/
/usr/bin/rsync -av -X -z --numeric-ids --relative --delete
--delete-excluded --max-size=250M --stats --timeout=1800
--exclude-from=/usr/local/etc/rsnapshot.exclude
--rsync-path=/usr/local/bin/rsync --rsh="/usr/bin/ssh -o
ConnectTimeout=600"
--link-dest=/Volumes/Backup/laptops/daily.1/MBPuser/
root < at > MBPuser:/Users/MBPuser /Volumes/Backup/laptops/daily.0/MBPuser/
protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(173) [Receiver=3.0.7]
----------------------------------------------------------------------------
rsnapshot encountered an error! The program was invoked with these options:
/usr/local/bin/rsnapshot -c /usr/local/etc/rsnapshot-laptops.conf daily
----------------------------------------------------------------------------
ERROR: /usr/bin/rsync returned 2 while processing root < at > MBPuser:/Users/MBPuser/
/usr/bin/logger -i -p user.err -t rsnapshot /usr/local/bin/rsnapshot -c
/usr/local/etc/rsnapshot-laptops.conf daily: ERROR: /usr/bin/rsync
returned 2 while processing root < at > MBPuser:/Users/MBPuser/
[/quote]

It still looks like /usr/bin/rsync and not /usr/local/bin/rsync is being called. What am I missing? /usr/local/bin/rsync is a symbolic link to /usr/local/bin/rsync-3.0.7.

Thanks,
-Terry

Terry Barnum
digital OutPost
Carlsbad, CA

http://www.dop.com
800/464-6434

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
rsync error
July 08, 2016 05:40AM
On Wed, Jul 06, 2016 at 01:36:45PM -0700, Terry Barnum wrote:

[quote]My MacOS 10.11 laptop user is back in town and I made the rsync-path change but I'm still seeing errors and no backup is happening.

Here's the conf line:
[quote]backup root < at > MBPuser:/Users/MBPuser/ MBPuser/ +rsync_long_args=--rsync-path=/usr/local/bin/rsync
[/quote]
Here's raw output:
[quote]sync_if_different("/Volumes/Backup/laptops/tmp/",
"/Volumes/Backup/laptops/daily.0/unused1")
/bin/rm -rf /Volumes/Backup/laptops/tmp/
/usr/bin/rsync -av -X -z --numeric-ids --relative --delete
[/quote][/quote]
That's /usr/bin/rsync being invoked locally by rsnapshot ...

[quote][quote]--delete-excluded --max-size=250M --stats --timeout=1800
--exclude-from=/usr/local/etc/rsnapshot.exclude
--rsync-path=/usr/local/bin/rsync --rsh="/usr/bin/ssh -o
[/quote][/quote]
... and there's rsnapshot telling /usr/bin/rsync that it should run
/usr/local/bin/rsync on the remote machine.

[quote][quote]protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
[/quote][/quote]
I believe that's being spat out by your local rsync. Surprisingly, the
man page really is useful in this case.

--
David Cantrell | Bourgeois reactionary pig

You can't spell "slaughter" without "laughter"

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
rsync error
July 08, 2016 05:30PM
[quote]On Jul 8, 2016, at 5:37 AM, David Cantrell <david < at > cantrell.org.uk> wrote:

On Wed, Jul 06, 2016 at 01:36:45PM -0700, Terry Barnum wrote:

[quote]My MacOS 10.11 laptop user is back in town and I made the rsync-path change but I'm still seeing errors and no backup is happening.

Here's the conf line:
[quote]backup root < at > MBPuser:/Users/MBPuser/ MBPuser/ +rsync_long_args=--rsync-path=/usr/local/bin/rsync
[/quote]
Here's raw output:
[quote]sync_if_different("/Volumes/Backup/laptops/tmp/",
"/Volumes/Backup/laptops/daily.0/unused1")
/bin/rm -rf /Volumes/Backup/laptops/tmp/
/usr/bin/rsync -av -X -z --numeric-ids --relative --delete
[/quote][/quote]
That's /usr/bin/rsync being invoked locally by rsnapshot ...

[quote][quote]--delete-excluded --max-size=250M --stats --timeout=1800
--exclude-from=/usr/local/etc/rsnapshot.exclude
--rsync-path=/usr/local/bin/rsync --rsh="/usr/bin/ssh -o
[/quote][/quote]
... and there's rsnapshot telling /usr/bin/rsync that it should run
/usr/local/bin/rsync on the remote machine.

[quote][quote]protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
[/quote][/quote]
I believe that's being spat out by your local rsync. Surprisingly, the
man page really is useful in this case.
[/quote]
Thank you David. I could swear I searched the man page for protocol version mismatch. I must've misplellled it, sorry.

Will try the ssh login tests with this laptop when it's back in town again.

-Terry

[quote]--
David Cantrell | Bourgeois reactionary pig

You can't spell "slaughter" without "laughter"

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

[/quote]
Terry Barnum
digital OutPost
Carlsbad, CA

http://www.dop.com
800/464-6434

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Sorry, only registered users may post in this forum.

Click here to login