How I can make duplicates of remote directories!

Advertisement

Perttu Pulkkinen
Guest

How I can make duplicates of remote directories!

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:
cp "!" "Copy_of_!"

It works with files but not with directories. :(

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
Location:
Prague, Czechia

Re: How I can make duplicates of remote directories!

You need to add -R paramter:
cp -R "!" "Copy_of_!"

_________________
Martin Prikryl

Reply with quote

metaclops
Guest

WinSCP totally needs Windows style remote copying.

Lack of remote copying is a hole in this otherwise great program.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
Location:
Prague, Czechia

Re: WinSCP totally needs Windows style remote copying.

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

Reply with quote

Advertisement

You can post new topics in this forum