From: Manuel Giraud <manuel@ledu-giraud.fr>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: help-gnu-emacs@gnu.org, Tomas Hlavaty <tom@logand.com>,
Tassilo Horn <tsdh@gnu.org>
Subject: Re: Dired command on same host
Date: Mon, 10 Jan 2022 17:16:00 +0100 [thread overview]
Message-ID: <87wnj7pnwf.fsf@elite.giraud> (raw)
In-Reply-To: <87mtk3iqkg.fsf@gmx.de> (Michael Albinus's message of "Mon, 10 Jan 2022 16:00:15 +0100")
Michael Albinus <michael.albinus@gmx.de> writes:
> Manuel Giraud <manuel@ledu-giraud.fr> writes:
>
> Hi Manuel,
>
>>> What will it be good for? It copies also via your local tmp directory,
>>> doesn't it?
>>
>> My intent was to use scp default "-3" behaviour when source and
>> destination are remote hosts. Why? Because this behaviour works without
>> filling up my local (small) /tmp directory whereas tramp does. I don't
>> know how it works but it seems that a "scp hostA:file hostB:" does not
>> use /tmp.
>
> Interesting. Honestly, I have no idea where the scp program buffers the
> local temp data. Perhaps it is better to use this, indeed.
Ok, I might have been too bleeding edge on ssh here.
If, I understand the following code correctly:
https://github.com/openbsd/src/blob/33e609bc6fba341792696aa7159aa47556483f0e/usr.bin/ssh/scp.c#L994
It seems that if mode is SFTP, the copy is done from one SFTP connection
to another directly. But, the default to SFTP mode was activated quite
recently:
https://github.com/openbsd/src/commit/88549df51ff400f3bab7dd1ee92d4f6fd526b715#diff-b94bba0ea2aa22d09c30d4c1e41153505d94a5d9cb61fad6823a950c2cf0bb22
And according this: https://www.openssh.com/releasenotes.html, the
default is not SFTP yet in the last release of openssh. So maybe it
could be a method worth having for tramp in the future ;-)
Does a "scp hostA:fileA hostB:" creates a /tmp file on you side?
--
Manuel Giraud
next prev parent reply other threads:[~2022-01-10 16:16 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-04 10:24 Dired command on same host Manuel Giraud
2022-01-04 12:56 ` Michael Albinus
2022-01-04 16:25 ` Manuel Giraud
2022-01-04 18:33 ` Michael Albinus
2022-01-04 19:35 ` Tassilo Horn
2022-01-05 9:35 ` Manuel Giraud
2022-01-05 21:07 ` Tomas Hlavaty
2022-01-06 11:01 ` Michael Albinus
2022-01-07 15:50 ` Michael Albinus
2022-01-10 9:33 ` Manuel Giraud
2022-01-10 12:56 ` Michael Albinus
2022-01-10 14:07 ` Manuel Giraud
2022-01-10 15:00 ` Michael Albinus
2022-01-10 16:16 ` Manuel Giraud [this message]
2022-01-11 8:25 ` Michael Albinus
2022-01-11 8:59 ` Manuel Giraud
2022-01-11 9:10 ` Michael Albinus
2022-01-10 17:21 ` Yuri Khan
2022-01-11 8:29 ` Michael Albinus
2022-01-05 10:34 ` Michael Albinus
2022-01-05 13:02 ` Manuel Giraud
2022-01-05 14:37 ` Michael Albinus
2022-01-05 18:23 ` Manuel Giraud
2022-01-05 9:44 ` Manuel Giraud
2022-01-05 10:40 ` Michael Albinus
2022-01-05 11:08 ` Yuri Khan
2022-01-05 11:46 ` Michael Albinus
2022-01-05 19:55 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnj7pnwf.fsf@elite.giraud \
--to=manuel@ledu-giraud.fr \
--cc=help-gnu-emacs@gnu.org \
--cc=michael.albinus@gmx.de \
--cc=tom@logand.com \
--cc=tsdh@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.