After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 518409 - Support native copy operation for SFTP
Support native copy operation for SFTP
Status: RESOLVED OBSOLETE
Product: gvfs
Classification: Core
Component: sftp backend
git master
Other Linux
: Normal enhancement
: ---
Assigned To: gvfs-maint
gvfs-maint
: 566678 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-02-24 13:34 UTC by Torsten Schoenfeld
Modified: 2018-09-21 16:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Torsten Schoenfeld 2008-02-24 13:34:51 UTC
When copying files or folders from a remote host with the nautilus' sftp support to another place on that same remote host, the files get downloaded and then re-uploaded.  Is it possible to do all the operations on the remote host only?  That would speed things up quite a bit.
Comment 1 Cosimo Cecchi 2008-02-24 23:15:10 UTC
Confirming with 2.21.91.
Comment 2 Cosimo Cecchi 2011-01-17 15:12:36 UTC
-> gvfs/sftp

This should be supported by the gvfs SFTP module natively. Nautilus shouldn't have any fault here.
Comment 3 Cosimo Cecchi 2011-01-17 15:17:39 UTC
*** Bug 566678 has been marked as a duplicate of this bug. ***
Comment 4 Felix Möller 2012-02-26 00:18:10 UTC
I cannot reproduce this using gvfs 1.10.0-0ubuntu1.

I have created a new folder on a sftp share and moved a 1GB file in that new folder. It did not have to be downloaded...
Comment 5 Torsten Schoenfeld 2012-02-26 12:56:36 UTC
Indeed.  Moving seems to be done on the server side now.  But copying is still done by downloading and then re-uploading it seems.
Comment 6 Felix Möller 2012-02-26 14:32:00 UTC
(In reply to comment #5)
> Indeed.  Moving seems to be done on the server side now.  But copying is still
> done by downloading and then re-uploading it seems.

I can confirm this with gvfs 1.10.0-0ubuntu1.

Can you change the bug title?
Comment 7 Ross Lagerwall 2013-10-03 09:14:49 UTC
AFAICT, the SFTP protocol does not have a "copy" operation (it does have a rename operation though which allows move to be done on the server side).  This means that copy has to be implemented by downloading and re-uploading.  I recommend closing...
Comment 8 Ondrej Holy 2013-10-03 13:41:58 UTC
You are right. Move/rename is supported by the sftp protocol, however copy is not. For sftp there might by option to use cp command over ssh if supported, for pure ftp there isn't any option. So, closing...
Comment 9 Ross Lagerwall 2013-10-25 05:28:09 UTC
I see now that SFTP does have some extensions, one of which allows server-side copies:
http://tools.ietf.org/html/draft-ietf-secsh-filexfer-extensions-00
Comment 10 Ondrej Holy 2016-09-13 09:38:16 UTC
Unfortunately, it seems that this extension is not supported by the most widespread SFTP server, OpenSSH, see:
http://serverfault.com/questions/724122/is-there-a-way-using-sftp-to-copy-a-file-on-a-remote-file-system-to-the-same-f

I see only the following extensions to be supported by OpenSSH_7.2p2:
posix-rename@openssh.com
statvfs@openssh.com
fstatvfs@openssh.com
hardlink@openssh.com
fsync@openssh.com
Comment 11 Ondrej Holy 2016-09-13 12:30:15 UTC
There is an old upstream bug report for OpenSSH:
https://bugzilla.mindrot.org/show_bug.cgi?id=1653
Comment 12 GNOME Infrastructure Team 2018-09-21 16:17:57 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gvfs/issues/35.