简体   繁体   English

用于带有plesk的镜像服务器的rsync

[英]rsync for mirror server with plesk

I have 2 linux server (centOS) with Plesk 10 and two license. 我有2个带有Plesk 10的Linux服务器(centOS)和两个许可证。 I want to make the first server master and the second a mirror slave, using RSYNC. 我想使用RSYNC使第一个服务器主服务器和第二个服务器成为镜像从服务器。

I know how to transfer some folders (domains and databases).. but I have a question: 我知道如何传输一些文件夹(域和数据库)..但是我有一个问题:

If I create a new domain on the master server, how can I "update" the slave server? 如果在主服务器上创建新域,如何“更新”从服务器?

If I use rsync the vhosts folder and mysql folder.. the slave plesk doesn't know that I have added a new domain.. 如果我使用rsync,则vhosts文件夹和mysql文件夹.. slave plesk不知道我已经添加了新域。

I have to rsync the psa folder too? 我也必须rsync psa文件夹吗?

Someone can help me to find all the folders "to rsync" from the master server to the slave server? 有人可以帮助我找到所有从主服务器“到rsync”到从服务器的文件夹吗?

Thanks! 谢谢!

Additionally to vhosts and mysql you would need to replicate 除了虚拟主机和mysql,您还需要复制

  • Plesk managing DB ("psa") Plesk管理数据库(“ psa”)
  • DNS configuration DNS配置
  • /etc/psa, /etc/httpd and /etc/proftpd* / etc / psa,/ etc / httpd和/ etc / proftpd *

There may be some other folders as well - you may need to watch changes for a while 可能还有其他文件夹-您可能需要一段时间观察更改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM