use rsync with filenames containing "-"

joerg.maier at rz.uni-mannheim.de joerg.maier at rz.uni-mannheim.de
Wed Oct 8 20:14:55 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey there,

when i try to sync two directories or files containing a "-" character
in ther path, rsync fails:
# /usr/bin/rsync --partial -rcvaLe "ssh -o UserKnownHostsFile=/dev/null -o \
StrictHostKeyChecking=no" --progress "user at server:/path/band - album/" "/path/"

this gives an error like:
rsync: on remote machine: -: unknown option

every escaping like \- or \\- fails, too. Any help is appreciated.
joerg maier

GnuPG Key and Fingerprint : http://www.shove-it.de/meinweb/joergpubkey03
GnuPG Key : gpg --keyserver www.keyserver.net --recv-key 76ECD5A7

Hi
I am a signature virus.
Please copy me to your .signature file to help me spread.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE/g+OgTYj8eXbs1acRAtFrAJ99Be5EprM20sIsW/3p5i1Gn9/NZQCglJiW
2YHqfUEJkGSx0DFQHYT/5yE=
=7mvh
-----END PGP SIGNATURE-----



More information about the rsync mailing list