Changes between Version 7 and Version 8 of manual_regente_windows_rsync
- Timestamp:
- 02/01/16 09:00:47 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
manual_regente_windows_rsync
v7 v8 3 3 == Manual de instalación de Rsync == [[BR]] 4 4 Cambiar los nombres siguientes archivos de tal manera que no tengan el mismo nombre que el distribuidor: [[BR]] 5 * C:\proyectos\regente\_ent\''' mberlanda.ini''' [[BR]]6 * Acomodar (suscriptor mberlanda.php) [[BR]]7 * Acomodar (indexm berlanda.html) [[BR]]8 * C:\proyectos\regente\'''suscriptor mberlanda.php''' [[BR]]5 * C:\proyectos\regente\_ent\'''nomsuc.ini''' [[BR]] 6 * Acomodar (suscriptornomsuc.php) [[BR]] 7 * Acomodar (indexmnomsuc.html) [[BR]] 8 * C:\proyectos\regente\'''suscriptornomsuc.php''' [[BR]] 9 9 * Acomodar (suscriptor.bat) [[BR]] 10 * C:\proyectos\regente\'''index mberlanda.html''' [[BR]]10 * C:\proyectos\regente\'''indexnomsuc.html''' [[BR]] 11 11 * Acomodar (http.conf) [[BR]] 12 Luego copiar ''' mberlanda.ini''' en el directorio /'''vaw/ww/html/regente/_ent''' del Distribuidor y el archivo '''indexmberlanda.html''' en el directorio '''/vaw/ww/html/regente/'''. [[BR]]12 Luego copiar '''nomsuc.ini''' en el directorio /'''vaw/ww/html/regente/_ent''' del Distribuidor y el archivo '''indexnomsuc.html''' en el directorio '''/vaw/ww/html/regente/'''. [[BR]] 13 13 [[BR]] 14 14 … … 49 49 * PASO 2) Desde cada servidor suscriptor copiar la clave pública que se acaba de generar al servidor distribuidor: [[BR]] 50 50 Linux: [[BR]] 51 '''scp -Cp -P 5900 /root/.ssh/id_rsa.pub root@ 192.168.227.1:/root/.ssh/id_rsa_nomsuc.pub'''. [[BR]]51 '''scp -Cp -P 5900 /root/.ssh/id_rsa.pub root@ip_servidor_vpn:/root/.ssh/id_rsa_nomsuc.pub'''. [[BR]] 52 52 Windows: [[BR]] 53 53 Copiar con '''WinSCP'''. [[BR]] … … 61 61 [[BR]] 62 62 Probar la conexión con: [[BR]] 63 '''ssh 192.168.229.1–p 5900 –l root''' y tiene que conectarse al Distribuidor sin pedir contraseña. [[BR]]63 '''ssh ip_servidor_vpn –p 5900 –l root''' y tiene que conectarse al Distribuidor sin pedir contraseña. [[BR]] 64 64 [[BR]] 65 65 Crear el .bat y la tarea programa para que actualice: [[BR]] … … 68 68 Contenido del bat: [[BR]] 69 69 {{{ 70 rsync -arq -e "ssh -p 5900" --exclude "regente/_tmp" --exclude "agostini" --exclude "agostini1" --exclude "agostini2" --exclude "mail" root@192.168.229.1:/var/www/html/ /cygdrive/c/proyectos/70 rsync -arq -e "ssh -p 5900" --exclude "regente/_tmp" root@ip_servidor_vpn:/var/www/html/ /cygdrive/c/proyectos/ 71 71 }}} 72 72 Windows: [[BR]] … … 102 102 Antes de ejecutar la tarea programa, probar manualmente desde un cmd con la siguiente línea: [[BR]] 103 103 {{{ 104 rsync -arv -e "ssh -p 5900" --exclude "regente/_tmp" --exclude "agostini" --exclude "agostini1" --exclude "agostini2" --exclude "mail" root@192.168.229.1:/var/www/html/ /cygdrive/c/proyectos/104 rsync -arv -e "ssh -p 5900" --exclude "regente/_tmp" root@ip_servidor_vpn:/var/www/html/ /cygdrive/c/proyectos/ 105 105 }}} 106 106 Tiene que mostrar la actualización en curso (por lo general ésta es la mas grande, ya que es la primer vez que se ejecuta) [[BR]]