Topic "How I can make duplicates of remote directories!"

Author Message
Perttu Pulkkinen

Guest


How I can make duplicates of remote directories like I can do in local windows by dragging them around? Now I have to copy directory to local machine, change its name and drop back to remote machine. That's costly.

I'm not enough familiar with unix but I tried make custom command Duplicate like this:
Code:
cp "!" "Copy_of_!"


It works with files but not with directories. Sad
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You need to add -R paramter:
Code:
cp -R "!" "Copy_of_!"

_________________
Martin Prikryl
metaclops

Guest


Lack of remote copying is a hole in this otherwise great program.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
metaclops wrote:
Lack of remote copying is a hole in this otherwise great program.

It is one the wishlist. However SFTP protocol does not support remote file duplication, so it will be possible with SCP only anyway.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License