Topic "script to zip and copy files from one server to another server"

Author Message
christophernugen
[View user's profile]

Joined: 2015-08-04
Posts: 1
Location: houston
I need a Script to do the following and was wondering if WinSCP is capable:
zip and copy a file from one folder on one server, and paste it into a different folder on a different server.
the issue is that the files are large so it must be compressed first, and then moved to a completely different server.
the sql backups are run from the sql server job queue, and are scheduled so the script would need to watch for when the file hits the folder, zip it and move it to the new server.
This will become a scheduled nightly task on the two servers.
I don't even know where to begin..... so i decided to ask for help.
any help will be greatly appreciated!!!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
While you can use WinSCP for this. I'd say that some shell script/commands (invoked remotely via SSH, e.g. using plink.exe) is a better solution that using a file transfer client.
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