Current time: 11-23-2024, 08:31 AM Hello There, Guest! (LoginRegister)


Post Reply 
Howto Sincronizar 2 servidores con ISPCP + Rsync
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #21
RE: Howto Sincronizar 2 servidores con ISPCP + Rsync
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
03-12-2010 12:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
theprincy Offline
Member
***

Posts: 311
Joined: Nov 2008
Reputation: 2
Post: #22
RE: Howto Sincronizar 2 servidores con ISPCP + Rsync
./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
03-12-2010 01:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Piradoxlanieve Offline
Junior Member
*

Posts: 246
Joined: Jul 2009
Reputation: 0
Post: #23
RE: Howto Sincronizar 2 servidores con ISPCP + Rsync
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
(This post was last modified: 03-12-2010 02:09 AM by Piradoxlanieve.)
03-12-2010 02:01 AM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #24
RE: Howto Sincronizar 2 servidores con ISPCP + Rsync
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
(This post was last modified: 03-12-2010 02:36 AM by kurgans.)
03-12-2010 02:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
theprincy Offline
Member
***

Posts: 311
Joined: Nov 2008
Reputation: 2
Post: #25
RE: Howto Sincronizar 2 servidores con ISPCP + Rsync
(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
03-12-2010 02:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #26
RE: Howto Sincronizar 2 servidores con ISPCP + Rsync
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
(This post was last modified: 03-12-2010 02:37 AM by kurgans.)
03-12-2010 02:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
theprincy Offline
Member
***

Posts: 311
Joined: Nov 2008
Reputation: 2
Post: #27
RE: Howto Sincronizar 2 servidores con ISPCP + Rsync
(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
03-12-2010 02:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #28
RE: Howto Sincronizar 2 servidores con ISPCP + Rsync
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
(This post was last modified: 03-12-2010 03:24 AM by kurgans.)
03-12-2010 03:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Puntonetsvb Offline
Junior Member
*

Posts: 214
Joined: Nov 2008
Reputation: 0
Post: #29
RE: Howto Sincronizar 2 servidores con ISPCP + Rsync
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 && ! '
(This post was last modified: 03-12-2010 07:12 PM by Puntonetsvb.)
03-12-2010 07:00 PM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #30
RE: Howto Sincronizar 2 servidores con ISPCP + Rsync
ponte en el direcorio /root/.ssh y ejecuta sin rutas ni al principio ni al final
03-12-2010 07:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)