Topic "Sync and backup multiple folders automatically"

Author Message
[View user's profile]

Joined: 2016-07-21
Posts: 1
Location: Hungary
Hey there!

I work as a trainee for a company and I got into some serious troubles when I got the following task:

We are manufacturing car parts for companies. This means that we recieve new orders each day, these files are being uploaded to a "request_ftp" folder by them. However we also send delevery notes to them which is uploaded to the "delivered_ftp" folder on the very same FTP server.

At this point when they upload a new order.xml to the "request_ftp" folder, I have to manually copy it to our local server "request_local" AND "request_backup" folder. Vice versa when our delivery sets off I manually copy delivered.xml from "delivered_local" onto the FTP server "delivered_ftp" and the local "delivered_backup" folder. If a file was copied to the proper folders I must delete them from the originial folder.

I need to make this procedure automatic but I am quite new to these kind of things.
I have tried "Keep remote directory up to date" but I could not setup it to multiple directories at the same time.
Additionally I would like to know how to copy files into two different directories and delete them from the original place if this is possible.

The best solution would be a executable batch file for this whole process.

Thank you in advance and have a nice day!
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Sorry, but that's a complex businesses logic. We cannot write your code for you.

Ask specific questions about specific problems and we can help you.

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License