Read files from two servers


#1

Hi,
in production I have 2 debian servers to which my app is deployed:
the first has a public IP and serves as webserver and the second has a
private IP and is used for database and other scripts running.

The scripts that are running saves some files on the second server
that should be accessed from the first server.
Is there an easy way to mount/link (?) the directories I need to be
accessed from both servers?

Thanks,
Andrea


#2

An wrote:

Hi,
in production I have 2 debian servers to which my app is deployed:
the first has a public IP and serves as webserver and the second has a
private IP and is used for database and other scripts running.

The scripts that are running saves some files on the second server
that should be accessed from the first server.
Is there an easy way to mount/link (?) the directories I need to be
accessed from both servers?

Thanks,
Andrea
mount that second server directory into you web server machine (in
public)
use “sshfs” tool for file mounting , it is very fast

sshfs removed_email_address@domain.invalid:/remote/directory
/local/machine/remote_directory/


#3

That is what I was looking for!

Thank you very much!

Andrea

On 16 Ott, 13:04, Sniper A. removed_email_address@domain.invalid