How to carry safely

I have two servers - a backend server and an external server. Every night, the backend server generates static .html files, which are then compressed in .tar format.

I need to write a script that is located on the backend server that will transfer the .tar file to an external server, and then decompress this .tar file into the public web directory of the external server.

What is the standard, safe way to do this?

Thanks in advance.

+3
source share
3 answers

- rsync. script . rsync , , . (.. Ssh

rsync:

  /usr/bin/rsync -vxSHrae "ssh -l backups" /opt/redmine backups@example.com::redmine

( ssh-...)

+4

SFTP FTP , .

+3

IPSec, , , .

( , ), ( ) ( .)

0

Source: https://habr.com/ru/post/1740508/


All Articles