Topic "Multile files to multiple remote Directories?"

Author Message
Guest




Is it possible to send file1 to remote directory1 and file2 to remote directory2 from the same session? I am using WinSCP version 5.5.3, windows 7 and doing SFTP.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24538
Location: Prague, Czechia
Well, of course. What particular problem are you having this this?
_________________
Martin Prikryl
Guest




I'm fairly new to this. I am using WinSCP for transferring a single file to a single server using synchronization and that works well. I wasn't sure about doing multiple files to multiple servers. I'm sure it will have to be done using scripting. I'll read up on it. Any help or examples would be greatly appreciated.
Guest




Anonymous wrote:
I'm fairly new to this. I am using WinSCP for transferring a single file to a single server using synchronization and that works well. I wasn't sure about doing multiple files to multiple servers. I'm sure it will have to be done using scripting. I'll read up on it. Any help or examples would be greatly appreciated.

This is what I have:
A scripting file as such:
synchronize remote [ <Z:IT\xfer\tve> [ <KPU010@SCP.SSSNET.com> ] ]
synchronize remote [ <Z:IT\xfer\osg1> [ <KPUSFTP@NJ.OSGBILLING.com> ] ]
synchronize remote [ <Z:IT\xfer\osg2> [ <KPUSFTP@NJ.OSGBILLING.com> ] ]
Now what do I do to call this scripting file? The top one can be changed 4 times a day, the other 2 are once a month. My boss thought we could have this all in one synchronization doing all the files at once. Is that possible?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24538
Location: Prague, Czechia
You have to open a new session to a different server using open before each synchronize command.
Or have one parametrized script that you call multiple times (in a sequence or in parallel, as you like).
See http://winscp.net/eng/docs/script_upload_multiple_servers
_________________
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