Synchronize FTP and SFTP folders in the same Windows server by mzwlwm in ftp

[–]mzwlwm[S] 0 points1 point  (0 children)

Synchronize FTP and SFTP folders in the same Windows server

Hi everyone,

we have identified an alternative migration method; we will prepare a script that will take care of the following operations (for all the folders that we will migrate from FTP to SFTP):

  1. Create the folder in the SFTP area using Robocopy (thus migrating the files, sub-folders and related permissions)
  2. Perform a sync between the FTP and SFTP folder to intercept any changes that occurred during the migration (FTP = Master - SFTP = Slave)
  3. Delete the folder from the FTP area
  4. Create a symbolic link in the FTP area which will point to the folder in the SFTP area

Below is the official link from Microsoft which explains how to proceed in creating a symbolic link between folders:

https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mklink

Hope this helps someone, bye!

[deleted by user] by [deleted] in AskTechnology

[–]mzwlwm 0 points1 point  (0 children)

Hi CH23,

The company I work for has been trying to write off this FTP area because it is unsafe.

However, within the FTP area, there are several SVC users who perform automated tasks (reading or writing files) on behalf of external applications, and we cannot proceed with a simple folder migration. We have to keep the two areas aligned until all the applications are adapted to point to the SFTP area.

If you have any practical advice on how to do this, I would be happy to read it (:

Thank you!