Upload files to different servers

Asked

Viewed 351 times

1

I have a system A which sits on a server a. And I have another system B that stays in another server B.

System A needs to send files to system B. Of course if they were on the same server I could do it with a move_upload_file. There would also be the possibility of creating a link where System B would access these files from System A. However, System B cannot ("It does not have to have") access to anything from System A.

How can I send files on separate servers?

I know the question may seem broad, and it probably is. But what I need is a direction. I can’t imagine how to begin.

2 answers

2

You need to create a custom synchronization service. Simply do a service, which runs independently of the System A or System B and listen to the repositories and, whenever there is any change, this service then synchronizes the data.

Create a Windows Service - I recommend using Topshelf for this, see this article on how to create a Windows Service - connecting to the two repositories of the two cloud providers.

  • It’s an interesting solution. I’ll look at it

  • What if the servers are linux? It works too?

  • Yes, but for Linux servers you can create an application with . NET Core or else Nodejs. There is a Nodejs development center for Azure where you can consume all cloud resources using opensource technologies.

  • Thanks for the option Thiago.

2


  • Dude, one obvious thing. Working with FTP... Since I’ve never done any application with it, it didn’t come to mind. rsrsrs. Thank you. That’s what I needed.

  • Actually, it’s not that obvious. FTP server is not cloud. So I don’t see it as an option for the problem.

  • @Thiagolunardi, maybe I wasn’t clear in my question. But what I needed was to send System A receipts to System B that are on different servers... As much as FTP server is not cloud and even though the cloud tag should not have been put. FTP for my problem is the best option. (my opinion) =)

  • 1

    @Andreicoelho, got it. So I ask you to remove the tag cloud and also the term cloud of the title. For they really led me to understand another scenario. And if someone with a similar problem, but using different cloud providers has the same doubt, it will mess up more than help. :)

  • Have rasão @Thiagolunardi. I will remove. Anyway I found your solution very useful. Thanks.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.