strange behaviour on file with ':' in its name
Matt McCutchen
matt at mattmccutchen.net
Sun Feb 1 17:10:44 GMT 2009
On Sun, 2009-02-01 at 13:33 +0100, Louis-David Mitterrand wrote:
> Using 3.0.5 I can't send a file with ':' in its name in the current
> directory without prefixing it with ./
>
> delos% touch file:ext
>
> delos% rsync -avP file:ext sylla:/home/ldm
> The source and destination cannot both be remote.
> rsync error: syntax or usage error (code 1) at main.c(1154) [receiver=3.0.5]
That's because the HOST:PATH syntax indicates a source or destination to
be accessed via remote shell. If you want to send a file whose name
would be misinterpreted as remote, use ./ or --files-from.
--
Matt
More information about the rsync
mailing list