Yummy Software
Welcome, Guest. Please login or register.
October 20, 2009, 02:58:47 PM
3722 Posts in 729 Topics by 808 Members
Latest Member: senabey
Home Help Search Login Register
Yummy Software  |  Yummy FTP  |  Yummy FTP Talk  |  Why can't "Duplicate" be performed entirely on server? « previous next »
Pages: [1] 2 Print
Author Topic: Why can't "Duplicate" be performed entirely on server?  (Read 5651 times)
reesmaxwell
Newbie
*
Posts: 27


View Profile
Why can't "Duplicate" be performed entirely on server?
« on: April 01, 2008, 02:45:38 AM »

Hi,

  I notice that when selecting a folder (or file I guess) and right-clicking and choosing Duplicate, that the operation downloads everything to my computer and then creates a new folder and then uploads it all back up to the server.

  There must be some good reason for that, because in my ideal fantasy world a command would be issued to the server which would tell it to do it all on the server. 

  Is this not possible ever (with any FTP program), or is this just an issue with the current version of YummyFTP and that is on the list to be resolved?

Thanks!
  Rees
Logged
JD
Administrator
FTP Guru
*****
Posts: 1655


View Profile Email
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #1 on: April 01, 2008, 03:00:53 AM »

The FTP protocol does not have a 'duplicate' command, so this is the only way to make it work.
Logged
reesmaxwell
Newbie
*
Posts: 27


View Profile
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #2 on: April 01, 2008, 04:20:14 AM »

That's such a bummer. 

Thanks for cluing in this noob.

-Rees
Logged
columbusgeek
Newbie
*
Posts: 5


View Profile Email
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #3 on: July 25, 2008, 06:03:54 PM »

I am a fellow n00b as well.

I know I can do this via ssh, and I thought this was possible via sftp.  Am I wrong?  What about "copy" instead of "duplicate"?  Would this be sort of like FXP but on the same server?

BTW great software.  I've been using it for years with no issues aside from tiny hiccups with betas, but thats to be expected.  Good solid FTP program.
Logged
JD
Administrator
FTP Guru
*****
Posts: 1655


View Profile Email
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #4 on: July 25, 2008, 06:19:48 PM »

Thanks columbus Smiley

It's possible in the same way that you can do it in the Terminal, but via SSH only. It's not part of the SFTP functionality.

As such, you could try the Send Raw Command option which would send a custom command line via SSH. Yummy sets the working directory to that currently displayed, so you could enter for example:

cp filetodupe.example filenameduped.example

Note that you must use this feature at your own risk - for example, executing some commands by mistake can destroy all your data. I provide this feature for the brave and adventurous Wink
Logged
columbusgeek
Newbie
*
Posts: 5


View Profile Email
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #5 on: July 25, 2008, 07:06:47 PM »

Outstanding.  I seem to be very close now. 

Of course this brings up my other issue I have been avoiding.  (I wil start another thread if needed, but this seems to be related)

When I issue any raw commends like zip or unpack or cp I get a error of:
Code:
Connection : 13
Warning: Identity file /Users/matt/Desktop/matt.pub not accessible: No such file or directory.

This is a server issue, or a me issue?
(I searched for anybody with a similar issue here but I seem to be alone.)
« Last Edit: July 25, 2008, 07:09:37 PM by columbusgeek » Logged
JD
Administrator
FTP Guru
*****
Posts: 1655


View Profile Email
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #6 on: July 26, 2008, 03:23:38 AM »

Do you use SSH key file authentication when you connect via SFTP?  It looks like the SSH sub system can't locate the keyfile you've specified, but then I would have expected the SFTP connection to have failed too.... Try enabling 'Quote ssh keyfile paths' in the Server Options panel of the Preferences.
Logged
columbusgeek
Newbie
*
Posts: 5


View Profile Email
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #7 on: July 26, 2008, 01:05:22 PM »

Your solution was off, but it pointed my nose in the right direction.

A while back I tried to setup ssh to use keys instead of passwords.  I still had Yummy looking for a ssh key in the connect to server settings.  Once I disabled that everything is grand.  cp works as well as unarchive, etc.

I think I might have pee'd myself a little I am so happy.

Thanks so much JD
Logged
JD
Administrator
FTP Guru
*****
Posts: 1655


View Profile Email
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #8 on: July 26, 2008, 03:45:33 PM »

You're welcome! Great to hear it all worked out  Grin
Logged
obfuscode
Newbie
*
Posts: 34


View Profile
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #9 on: March 09, 2009, 12:07:45 PM »

Quote
It's possible in the same way that you can do it in the Terminal, but via SSH only. It's not part of the SFTP functionality.
As such, you could try the Send Raw Command option which would send a custom command line via SSH.
If this is the case, can't you hard-code the xcopy SSH command in coupled with the existing re-name trigger?
Logged
JD
Administrator
FTP Guru
*****
Posts: 1655


View Profile Email
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #10 on: March 09, 2009, 02:49:55 PM »

Check out 1.7.3b10 which has this capability (plus remote delete as a bonus!) built-in Grin
Logged
obfuscode
Newbie
*
Posts: 34


View Profile
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #11 on: March 15, 2009, 02:51:31 PM »

Today (using b10) I Option-dragged a folder into another folder and it did a download/upload, does the server-side commands only work on Duplicate and Move ?
Logged
JD
Administrator
FTP Guru
*****
Posts: 1655


View Profile Email
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #12 on: March 15, 2009, 03:01:17 PM »

You need to use the Duplicate command that is located in the Remote Shell Commands sub menu off the Transfer menu.

At the moment I would still call this an 'experimental' feature, therefore I didn't make use of it by default for all duplicate actions. It definitely works, but I'm nervous to radically change the behavior across the board at this point.
Logged
obfuscode
Newbie
*
Posts: 34


View Profile
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #13 on: March 15, 2009, 03:10:02 PM »

I would have just said no   Thanks for saying yes Cheesy
Logged
columbusgeek
Newbie
*
Posts: 5


View Profile Email
Re: Why can't "Duplicate" be performed entirely on server?
« Reply #14 on: March 24, 2009, 03:47:08 PM »

Holy crap this makes me happy.

LOVE the duplicate added to the raw comm menu.
Logged
Pages: [1] 2 Print 
« previous next »
Jump to: