ispCP - Board - Support
Howto Sincronizar 2 servidores con ISPCP + Rsync - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega International Area (/forum-22.html)
+--- Forum: Spanish Corner (/forum-29.html)
+--- Thread: Howto Sincronizar 2 servidores con ISPCP + Rsync (/thread-7519.html)

Pages: 1 2 3 4 5 6 7


RE: Howto Sincronizar 2 servidores con ISPCP + Rsync - kilburn - 03-12-2010 12:50 AM

Lo de la bbdd no se, pero los errores de "messager" es porque en las versiones nuevas del panel se llama "messenger". Renombralo en el script Wink


RE: Howto Sincronizar 2 servidores con ISPCP + Rsync - theprincy - 03-12-2010 01:00 AM

./sincro.sh
root@151.1.153.22's password:
root@151.1.153.22's password:
root@151.1.153.22's password:


I do not accept password


RE: Howto Sincronizar 2 servidores con ISPCP + Rsync - Piradoxlanieve - 03-12-2010 02:01 AM

Es curioso ya que en el servidor2(espejo)entro via phpmyadmin BD(ispcp) y me dice que no existen tablas.

Pero voy a /var/lib/mysql/ispcp y tengo los archvivos de las tablas *.MYD - *MYI y *frm(algunos ocupan bytes y otras kb)

tiene algo que ver que use ubuntu (ya que en el script) veo esto:

RUTA_DEBIAN=/etc/mysql/debian.conf

en ese archivo es como si fuera el my.conf? puede ser algo relacionado con eso???Tongue Gracias por soportarme jajaj, pero ahora ando intrigado Rolleyes
as you put the data, be careful with the space between the variable and the data.

HOST_REMOTO=xxx.xxx.xxx.xxx -->correct
HOST_REMOTO= xxx.xxx.xxx.xxx --> incorrect

USUARIO_REMOTO=root --> Correct
USUARIO_REMOTO= root--> Incorrect


CLAVE_PRIVADA=/root/.ssh/id_rsa --> create

sorry my bad englishSad


(03-12-2010 01:00 AM)theprincy Wrote:  ./sincro.sh
root@151.1.153.22's password:
root@151.1.153.22's password:
root@151.1.153.22's password:


I do not accept password



RE: Howto Sincronizar 2 servidores con ISPCP + Rsync - kurgans - 03-12-2010 02:21 AM

Generate key production server (www1)

www1: ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/sincroniza (Example path)
Enter passphrase (empty for no passphrase):[ENTER]
Enter same passphrase again:[ENTER]
Your identification has been saved in sincroniza
Your public key has been saved in sincroniza.pub

Copy generated files to new server
www1:scp /root/.ssh/sincroniza* root@ip:/root/.ssh

Record key automatic entry www1 to www2
www2:/root/.ssh/cat sincroniza.pub > /root/.ssh/authorized_keys

Finely in the script to enter data:
User
www2 server ip
path keys copied previously


RE: Howto Sincronizar 2 servidores con ISPCP + Rsync - theprincy - 03-12-2010 02:34 AM

(03-12-2010 02:21 AM)kurgans Wrote:  Generate key production server (www1)

www1: ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/sincroniza (Example path)
Enter passphrase (empty for no passphrase):[ENTER]
Enter same passphrase again:[ENTER]
Your identification has been saved in sincroniza
Your public key has been saved in sincroniza.pub

Copy generated files to new server
www1:scp /root/.ssh/sincroniza* root@ip:/root/.ssh

Record key automatic entry www1 to www2
www2:/root/.ssh/cat sincroniza.pub > /root/.ssh/authorized_keys

Finely in the script to enter data:
User
www2 server ip
path keys copied previously

generated correctly, but does not access the same with the script, but if you do manual login


RE: Howto Sincronizar 2 servidores con ISPCP + Rsync - kurgans - 03-12-2010 02:37 AM

His problem is that it enters the user automatically.
why not find the file authorizing the entering without password.
Can you mail me your script


RE: Howto Sincronizar 2 servidores con ISPCP + Rsync - theprincy - 03-12-2010 02:42 AM

(03-12-2010 02:37 AM)kurgans Wrote:  His problem is that it enters the user automatically.
why not find the file authorizing the entering without password.
Can you mail me your script

sent


RE: Howto Sincronizar 2 servidores con ISPCP + Rsync - kurgans - 03-12-2010 03:23 AM

Lo siento se me fue la pinza escribiendo el script, yo lo corregi en los mios pero no en el que subi.

Hay 2 errores

CNF_MYSQL="/etc/mysql/debian.conf"
RUTA_DEBIAN=/etc/mysql/debian.conf

El archivo es debian.cnf por eso no arranca el servidor mysql


RE: Howto Sincronizar 2 servidores con ISPCP + Rsync - Puntonetsvb - 03-12-2010 07:00 PM

modifico el scritp y le indico mi ip y usuario root

y cuando lo hago me responde:

sincroniza.sh: line 22: 91.121.162.59: command not found
sincroniza.sh: line 24: root: command not found
sincroniza.sh: line 53: GENERADO: command not found
mkdir: opción inválida -- d
Pruebe `mkdir --help' para más información.
sincroniza.sh: line 66: /var/log/rbackup/rbackup-12-03-2010-10:11.debug: No existe el fichero o el directorio
sincroniza.sh: line 67: /var/log/rbackup/rbackup-12-03-2010-10:11.debug: No existe el fichero o el directorio
sincroniza.sh: line 69: syntax error near unexpected token `newline'
sincroniza.sh: line 69: `! test -z $USUARIO_REMOTO && ! test -z $HOST_REMOTO && RUTA_PASSWD=${USUARIO_REMOTO}@${HOST_REMOTO}:${RUTA_PASSWD} ! test -z $USUARIO_REMOTO && ! '


RE: Howto Sincronizar 2 servidores con ISPCP + Rsync - kurgans - 03-12-2010 07:11 PM

ponte en el direcorio /root/.ssh y ejecuta sin rutas ni al principio ni al final