Upload files to different servers

1

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

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 . It would also be possible to create a link in which System B would access these files from System A. However, System B can not ("Must not have") access to any of System A.

How can I send files to different servers?

I know the question may seem broad, and it probably is. But what I need is a direction. I can not even begin to figure it out.

    
asked by anonymous 16.08.2016 / 15:10

2 answers

2

I would think about working with FTP / SFTP. They are very common services on any server and PHP offers full support for them.

See the docs below:

link

link

Good luck!

    
16.08.2016 / 15:29
2

You need to create a custom synchronization service. Simply make a service that runs independent of System A and System B and listens to the repositories and, whenever there is a change, that service then synchronizes the data. / p>

Create a Windows Service - I recommend using TopShelf for this, see this article on # - which connects to the two repositories of the two cloud providers.

    
16.08.2016 / 15:16