Re: scp: ambiguous target
Am 09.12.2006 22:04:06 schrieb(en) Rüdiger Noack:
>> erno@flinker:/tmp/Verzeichnis mit - und Leerzeichen$ scp -p bla
>> notebook:"$PWD"
>> scp: ambiguous target
> rsync -avze ssh . ta@extern:"\"bang - bang - riggediggedöing/\""
> building file list ... done
Danke, hier liegt also die Lösung. :-)
Für rsync - ja :-)
Für scp habe ich ein kleines Schmankerl wo das auch nicht hilft:
t_antepoth@sofa:~/flatsch bang - klong$ l
insgesamt 23
drwxr-xr-x 2 t_antepoth users 112 2006-12-10 00:49 ./
drwx------ 205 t_antepoth users 23936 2006-12-10 00:47 ../
-rw-r--r-- 1 t_antepoth users 0 2006-12-10 00:47 kalahari - mamma
-rw-r--r-- 1 t_antepoth users 0 2006-12-10 00:49 pisa pappa
t_antepoth@sofa:~/flatsch bang - klong$ scp * ta@extern:"\"flatsch bang
- klong/\""
und das hängt dann bis daß strg-C uns scheidet.
Die Version von ssh ist:
t_antepoth@sofa:~$ apt-cache show ssh | grep Version
Version: 1:4.3p2-6
Hingegen macht ein "rsync" genau das was man erwartet:
rsync -avze ssh * ta@extern:"\"flatsch bang - klong/\""
building file list ... done
created directory flatsch bang - klong
kalahari - mamma
pisa pappa
sent 190 bytes received 64 bytes 101.60 bytes/sec
total size is 0 speedup is 0.00
Ich persönlich empfinde rsync weitaus durchdachter bzgl. genau
dieser von Dir beschriebenen Situationen und halte scp dort für
etwas "holperig". Bin froh, daß es nicht nur mir so geht. ;-)
Wieso, dieser "Trick" funktioniert doch mit scp genauso:
Fast genauso. Aber zumindest nicht grundlegend anders.
Ich mag rsync halt lieber. =:*)
t++
Reply to: