On Wed, Jun 15, 2016 at 02:53:17PM -0700, Terry Barnum wrote:
[quote]I have a MacBook Pro user who updated to 10.11 which prevents (even root) from writing into /usr/bin. On previous OSes I used to copy a somewhat current version of rsync (3.0.7) in there and symlink rsync to it. No problem I thought, I'll copy it into /usr/local/bin/ instead which is really where it should've gone anyway. Doing an 'rsync --version' on the MacBook Pro shows 3.0.7 so /usr/local/bin/ is in the path prior to /usr/bin. But when the rsnapshot server runs and connects to the MacBook Pro, rsnapshot throws this error:
root < at > mbp:/Users/elcapuser rsync error: syntax or usage error (code 1) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-47/rsync/main.c(1333) [server=2.6.9]
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=...
--
David Cantrell | Minister for Arbitrary Justice
You can't spell "slaughter" without "laughter"
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss