Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #92819
| From | "Carlos E. R." <robin_listas@es.invalid> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: Another interesting (?) scp/rsync problem. |
| Date | 2026-10-04 12:46 +0200 |
| Message-ID | <niep4cF1toqU3@mid.individual.net> (permalink) |
| References | <119ql2q$2ee3l$1@news.xmission.com> |
On 2026-10-03 12:23, Kenny McCormack wrote:
> Ran into this today. Note that I started with "scp", hit the problem, so
> tried "rsync" next - same problem (exactly, suggesting that they use the same
> underlying mechanism - then switched to "sftp", which worked (albeit
> interactively, not fully command-line).
>
> So, I have a file on a remote system whose name has spaces in it - say
>
> $HOME/path/to/foo bar
>
> The directory path/to has lots of other files in it; I just want to copy
> "foo bar" to a local system. Assume that this file is the only one
> starting with "foo" in that directory, so the pattern "foo*" will match it.
> Also, assume that the actual filename is much longer and complicated and I
> am explicitly trying to avoid typing in the whole name. I want to match it
> with just "foo*".
>
> So, I try:
>
> scp -p remotesys:path/to/foo* .
>
> and I get error messages, basically complaining that there's no file "foo"
> and there's no file "bar". It seems clear that what it did was to glob
> "foo*" on the remote system (which is good), then run it through some
> shell (some version of /bin/sh) which caused it to get word-split into its
> component parts (which is bad).
>
> I tried many different things, but could not get anything to work, with
> either "scp" or "rsync". As mentioned above, eventually, "sftp" did the
> trick, since its interactive mode has filename completion, so I was able to
> do:
>
> sftp> get -p foo<tab>
>
> and have it do the right thing.
>
> Note: I tried doing this with (various combinations of) --include and
> --exclude in "rsync", but nothing worked.
>
> Any advice?
rsync -vart --size-only --progress --info=progress2
"carlos@..:/home/public/Videos/TV/A B/A_B_S06"/ .
That works, I use it. Of course, you probably do not need all the
options, but I left them because I pasted from the actual command used.
--
Cheers,
Carlos E.R.
ES🇪🇸, EU🇪🇺.
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Another interesting (?) scp/rsync problem. gazelle@shell.xmission.com (Kenny McCormack) - 2026-10-03 10:23 +0000
Re: Another interesting (?) scp/rsync problem. The Natural Philosopher <tnp@invalid.invalid> - 2026-10-03 11:50 +0100
Re: Another interesting (?) scp/rsync problem. Stéphane CARPENTIER <sc@fiat-linux.fr> - 2026-10-03 11:00 +0000
Re: Another interesting (?) scp/rsync problem. Stéphane CARPENTIER <sc@fiat-linux.fr> - 2026-10-03 11:08 +0000
Re: Another interesting (?) scp/rsync problem. Richard Kettlewell <invalid@invalid.invalid> - 2026-10-03 16:01 +0100
Re: Another interesting (?) scp/rsync problem. gazelle@shell.xmission.com (Kenny McCormack) - 2026-10-03 17:51 +0000
Re: Another interesting (?) scp/rsync problem. Stéphane CARPENTIER <sc@fiat-linux.fr> - 2026-10-04 10:59 +0000
Re: Another interesting (?) scp/rsync problem. gazelle@shell.xmission.com (Kenny McCormack) - 2026-10-04 12:28 +0000
Re: Another interesting (?) scp/rsync problem. Rich <rich@example.invalid> - 2026-10-03 13:06 +0000
Re: Another interesting (?) scp/rsync problem. Richard Kettlewell <invalid@invalid.invalid> - 2026-10-03 16:04 +0100
Re: Another interesting (?) scp/rsync problem. Richard Kettlewell <invalid@invalid.invalid> - 2026-10-03 15:58 +0100
Re: Another interesting (?) scp/rsync problem. c186282 <c186282@nnada.net> - 2026-10-03 23:23 -0400
Re: Another interesting (?) scp/rsync problem. "Carlos E. R." <robin_listas@es.invalid> - 2026-10-04 12:46 +0200
Re: Another interesting (?) scp/rsync problem. gazelle@shell.xmission.com (Kenny McCormack) - 2026-10-04 12:29 +0000
Re: Another interesting (?) scp/rsync problem. "Carlos E. R." <robin_listas@es.invalid> - 2026-10-04 15:09 +0200
Re: Another interesting (?) scp/rsync problem. gazelle@shell.xmission.com (Kenny McCormack) - 2026-10-04 14:10 +0000
Re: Another interesting (?) scp/rsync problem. The Natural Philosopher <tnp@invalid.invalid> - 2026-10-04 18:06 +0100
Re: Another interesting (?) scp/rsync problem. "Carlos E. R." <robin_listas@es.invalid> - 2026-10-04 19:31 +0200
Re: Another interesting (?) scp/rsync problem. The Natural Philosopher <tnp@invalid.invalid> - 2026-10-04 18:58 +0100
Re: Another interesting (?) scp/rsync problem. "Carlos E. R." <robin_listas@es.invalid> - 2026-10-04 20:31 +0200
Re: Another interesting (?) scp/rsync problem. c186282 <c186282@nnada.net> - 2026-10-05 02:37 -0400
Re: Another interesting (?) scp/rsync problem. Richard Kettlewell <invalid@invalid.invalid> - 2026-10-05 09:05 +0100
Re: Another interesting (?) scp/rsync problem. Rich <rich@example.invalid> - 2026-10-05 17:52 +0000
Re: Another interesting (?) scp/rsync problem. Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-10-05 02:31 +0000
csiph-web