EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Copy of Remote folder

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#10135
Posted: 05/22/2009 23:10:38
by Kunal Gupta (Standard support level)
Joined: 03/31/2008
Posts: 3

I have task of making a copy of a remote folder into another backup folder on the remote server before we sftp files to that folder. I tried the copyremotefile but get "operation not supported" error. What would be the best way of doing such a task
#10136
Posted: 05/23/2009 02:19:04
by Eugene Mayevski (EldoS Corp.)

The only way would be to open shell channel and send shell commands one by one and process their output.


Sincerely yours
Eugene Mayevski
#10139
Posted: 05/23/2009 19:50:03
by Kunal Gupta (Standard support level)
Joined: 03/31/2008
Posts: 3

is there some sample code that I can use for this task?
#10140
Posted: 05/24/2009 01:51:52
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Yes, just open any SSH client demo (SimpleSSH, or so), connect and execute command like 'cp -R /path/to/your/files /path/to/backup'.
You should just change this demo to automatically send this command.

Reply

Statistics

Topic viewed 1018 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!