Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Can I have 2 folder from 2 different server in sync one way!

  • I have a Windows server, Server 1 :public server
  • a Windows server, Server 2: local on my network :under NAT

The problem is that I get some files in a folder on Server 1 and I have to copy them to a local network drive (Server 2 local network), and delete the original (space limit).

The way I am doing this now is that I have Filezila open in Server 2 and refresh to see for new files. If yes I download them and delete the original. ( I have map the network driver as local under the " Z:" driver letter).

I need a way to do this automatic. I have tried Bit Torrent Sync but I delete the backup if I delete original or the other way. And make duplicate file.

I need a sync like Dropbox but after download from Server 1 I can delete the original or move the back up without sync them again.

NOTE: I will be very happy if it can be done secure like sftp.

share|improve this question

migrated from stackoverflow.com May 1 '13 at 9:29

This question came from our site for professional and enthusiast programmers.

1 Answer 1

You need to run a client program on SERVER 2 that monitors the mapped drive for new files. New files can be detected by the program based on filename and timestamp. The most important thing that program needs to take care of is whether the file is still being written to disk on the monitored directory or you risk transferring corrupt data.

The program can be written in any programming language of your choice, I would recommend either Java or .NET (C#, VB.NET).

If you are looking for commercial software please look into using JSCAPE's JSCAPE MFT Server which implements directory monitors & is designed to do exactly this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.