Home > Back-end >  Java server file copying
Java server file copying

Time:09-30

I have two servers, to run the program on A server, the server will B/A copy of A folder under the root directory of the web, looking forward to is the result of the B/web directory of the server has A, B two content the same name in different folders, can achieve please? How to do it

CodePudding user response:

You can based on the samba, such as NFS file sharing access, and then use program through replication,

Or based on HTTP protocol can also open the webserver folder list, through the access list, then traverse the download can also list one by one,

CodePudding user response:

How AB server connection?
If A can direct remote login B, that is to invoke A remote command directly,
If AB is not directly connected, it will provide B interface, A call interface

CodePudding user response:

You make this A send A message to B, B receives the message in the local start copying files
  • Related