Discussion:
[rsnapshot-discuss] backups no longer working after upgrade from 1.3.1 to 1.4.1
Sonic
2015-10-12 18:55:26 UTC
Permalink
One of the backup lines in my rsnapshot.conf used an alternate port
for an rsync module:

backup --port=874 host::module destination/

Which worked fine with 1.3.1 now fails with:
rsync: --port=874 host:module: invalid numeric value
=====================================
/usr/bin/rsync -av --delete --numeric-ids --relative --delete-excluded \
--port=874 host::module /mnt/saved/test/daily.0/destdir/
rsync: --port=874 host::module: invalid numeric value
rsync error: syntax or usage error (code 1) at main.c(1554) [client=3.1.1]
=====================================

Alternate methods also fail:
backup host::module destination/ +rsync_long_args="--port=874"
=====================================
/usr/bin/rsync -av --delete --numeric-ids --relative --delete-excluded \
host::module /mnt/saved/test/daily.0/destdir/ \
+rsync_long_args="--port=874"
@ERROR: Unknown module 'module'
=====================================
seems the port change does not get passed to rsync

backup rsync:://host:874/module destdir/
=====================================
/usr/bin/rsync -av --delete --numeric-ids --relative --delete-excluded \
rsync:://host:874/module /mnt/saved/test/daily.0/destdir/
ERROR: The remote path must start with a module name not a /
rsync error: error starting client-server protocol (code 5) at
main.c(1635) [Receiver=3.1.1]
=====================================
a problem I don't get when running the rsync command manually (but
this fails the same way with 1.3.1)

Chris

------------------------------------------------------------------------------
Scott Hess
2015-10-12 19:37:06 UTC
Permalink
Make sure you separate things with tabs, not spaces.

Then make sure your editor didn't convert tabs to spaces.

-scott
Post by Sonic
One of the backup lines in my rsnapshot.conf used an alternate port
backup --port=874 host::module destination/
rsync: --port=874 host:module: invalid numeric value
=====================================
/usr/bin/rsync -av --delete --numeric-ids --relative --delete-excluded \
--port=874 host::module /mnt/saved/test/daily.0/destdir/
rsync: --port=874 host::module: invalid numeric value
rsync error: syntax or usage error (code 1) at main.c(1554) [client=3.1.1]
=====================================
backup host::module destination/ +rsync_long_args="--port=874"
=====================================
/usr/bin/rsync -av --delete --numeric-ids --relative --delete-excluded \
host::module /mnt/saved/test/daily.0/destdir/ \
+rsync_long_args="--port=874"
@ERROR: Unknown module 'module'
=====================================
seems the port change does not get passed to rsync
backup rsync:://host:874/module destdir/
=====================================
/usr/bin/rsync -av --delete --numeric-ids --relative --delete-excluded \
rsync:://host:874/module /mnt/saved/test/daily.0/destdir/
ERROR: The remote path must start with a module name not a /
rsync error: error starting client-server protocol (code 5) at
main.c(1635) [Receiver=3.1.1]
=====================================
a problem I don't get when running the rsync command manually (but
this fails the same way with 1.3.1)
Chris
------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Sonic
2015-10-12 21:05:39 UTC
Permalink
Post by Scott Hess
Make sure you separate things with tabs, not spaces.
Did not help with the original syntax that worked with 1.3.1:
backup --port=874 host::module destination/

But it did allow the alternate syntax to work:
backup host::module destination/ +rsync_long_args="--port=874"

Thanks!

Chris

------------------------------------------------------------------------------
Loading...