Current time: 05-04-2024, 03:25 PM Hello There, Guest! (LoginRegister)


Post Reply 
-Resuelto- Realizar Backup en local de ISP-omega
Author Message
spidersoftware Offline
Junior Member
*

Posts: 80
Joined: Apr 2010
Reputation: 0
Post: #1
-Resuelto- Realizar Backup en local de ISP-omega
Que tal e modificado el script de kurgans para realizar una copia en local de los archivos fundamenteles, lo modifique un poco, creando una nueva variable llamada BACKUP_DIR, que es le directorio donde se copiara, borre los user y destino que ponia en el propio script que quitandolo funcionaba y compruebo que existe el directorio y si no se crea.

en teoria deberia de funcionar pero me da estos errores:

Code:
17 feb 08:38:04  ATENCION: sending incremental file list rsync: change_dir#3 "/backup-ispo/etc" failed: No such file or                                                   directory (2) rsync error: errors selecting input/output files, dirs (code 3) at main.c(632) [receiver=3.0.3] rsync: c                                                  onnection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code                                                   12) at io.c(635) [sender=3.0.3]
17 feb 08:38:04  ATENCION: sending incremental file list rsync: change_dir#3 "/backup-ispo/etc" failed: No such file or                                                   directory (2) rsync error: errors selecting input/output files, dirs (code 3) at main.c(632) [receiver=3.0.3] rsync: c                                                  onnection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code                                                   12) at io.c(635) [sender=3.0.3]
17 feb 08:38:05  ATENCION: sending incremental file list rsync: change_dir#3 "/backup-ispo/etc" failed: No such file or                                                   directory (2) rsync error: errors selecting input/output files, dirs (code 3) at main.c(632) [receiver=3.0.3] rsync: c                                                  onnection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code                                                   12) at io.c(635) [sender=3.0.3]
17 feb 08:38:05  ATENCION: sending incremental file list rsync: change_dir#3 "/backup-ispo/etc/proftpd" failed: No such                                                   file or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at main.c(632) [receiver=3.0.3]                                                   rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stre                                                  am (code 12) at io.c(635) [sender=3.0.3]
17 feb 08:38:05  ATENCION: sending incremental file list rsync: change_dir#3 "/backup-ispo/etc/ispcp" failed: No such f                                                  ile or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at main.c(632) [receiver=3.0.3] rs                                                  ync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream                                                   (code 12) at io.c(635) [sender=3.0.3]
17 feb 08:38:05  ATENCION: sending incremental file list rsync: change_dir#3 "/backup-ispo/var/www/ispcp/engine" failed                                                  : No such file or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at main.c(632) [receive                                                  r=3.0.3] rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol                                                   data stream (code 12) at io.c(635) [sender=3.0.3]
17 feb 08:38:05  ATENCION: sending incremental file list rsync: change_dir#3 "/backup-ispo/var/www/ispcp/engine/messeng                                                  er" failed: No such file or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at main.c(632                                                  ) [receiver=3.0.3] rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync                                                   protocol data stream (code 12) at io.c(635) [sender=3.0.3]
17 feb 08:38:05  ATENCION: sending incremental file list rsync: change_dir#3 "/backup-ispo/var/www/ispcp/gui/include" f                                                  ailed: No such file or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at main.c(632) [re                                                  ceiver=3.0.3] rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync prot                                                  ocol data stream (code 12) at io.c(635) [sender=3.0.3]
17 feb 08:38:05  ATENCION: sending incremental file list rsync: change_dir#3 "/backup-ispo/var/www/ispcp/gui/tools/pma"                                                   failed: No such file or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at main.c(632) [                                                  receiver=3.0.3] rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync pr                                                  otocol data stream (code 12) at io.c(635) [sender=3.0.3]
17 feb 08:38:05  ATENCION: sending incremental file list rsync: mkdir "/backup-ispo/var/www" failed: No such file or di                                                  rectory (2) rsync error: error in file IO (code 11) at main.c(594) [receiver=3.0.3] rsync: connection unexpectedly clos                                                  ed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(635) [sender=3                                                  .0.3]
17 feb 08:38:06  ATENCION: sending incremental file list rsync: mkdir "/backup-ispo/var/lib" failed: No such file or di                                                  rectory (2) rsync error: error in file IO (code 11) at main.c(594) [receiver=3.0.3] rsync: connection unexpectedly clos                                                  ed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(635) [sender=3                                                  .0.3]
17 feb 08:38:06  ATENCION: sending incremental file list rsync: writefd_unbuffered failed to write 4 bytes [sender]: Br                                                  oken pipe (32) rsync: mkdir "/backup-ispo/var/mail" failed: No such file or directory (2) rsync error: error in file IO                                                   (code 11) at main.c(594) [receiver=3.0.3] rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsy                                                  nc error: error in rsync protocol data stream (code 12) at io.c(635) [sender=3.0.3]
17 feb 08:38:15  ATENCION: sending incremental file list rsync: change_dir#3 "/backup-ispo/etc/bind" failed: No such fi                                                  le or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at main.c(632) [receiver=3.0.3] rsy                                                  nc: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream                                                   (code 12) at io.c(635) [sender=3.0.3]
17 feb 08:38:15  ATENCION: sending incremental file list rsync: change_dir#3 "/backup-ispo/etc/mysql" failed: No such f                                                  ile or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at main.c(632) [receiver=3.0.3] rs                                                  ync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream                                                   (code 12) at io.c(635) [sender=3.0.3]

Total que no me funciona dejo aqui el script por si alguien le vale o me dice que esta mal.

De todas formas como se que existen aplicaciones para esto me puse a investigar y e realizado el backup de los archivos en local rdiff-backup y explico aqui como hacerlo por si le vale a alguien mas pues se ve muy practico.

en debian:

Code:
apt-get install rdiff-backup

creas un archivo llamado incluye-backup

Code:
nano incluye-backup

Luego pegas en el texto que son los directorios que hacen falta para isp-omega (creo que si xD)

Code:
/etc/
/var/www/
/var/lib/mysql/
/var/mail/
/var/log
/var/spool/cron
/var/cache/bind

Luego creamos si queremos un script para esto que llamamos backup-isp-omega.sh y le damos permisos de ejecucion y le pasamos esto.


Code:
nano backup-isp-omega.sh

Code:
#!/bin/sh
rdiff-backup --print-statistics --terminal-verbosity 2 --include-globbing-filelist incluye-backup -$

Code:
chmod +x backup-isp-omega.sh
./backup-isp-omega.sh

Con esto Realizamos LA copia de todos eso ficheros, corregirme si hace falta algun sitio mas pero segun vi en el script con eso es de sobra.Ademas si alguien quiere arreglar el script aqui lo dejo.

Un saludo a todos.
(This post was last modified: 02-18-2011 05:50 PM by kurgans.)
02-18-2011 07:32 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: #2
RE: Realizar Backup en local de ISP-omega -Resuelto-
Quote:rsync error:

Lo mismo que instalas el paquete de rdiff por que no instalas el de rsync
(This post was last modified: 02-18-2011 06:40 PM by kurgans.)
02-18-2011 05:12 PM
Visit this user's website Find all posts by this user Quote this message in a reply
spidersoftware Offline
Junior Member
*

Posts: 80
Joined: Apr 2010
Reputation: 0
Post: #3
RE: -Resuelto- Realizar Backup en local de ISP-omega
Perdon se me olvido poneros el script por si era cosa de mi maquina o del script, por lo que dice kurgan es de mi maquina jeje muy posible nunca e realizado respaldos con rsync en esta maquina.

Adjunto el script y asi lo podeis confirmar, un saludo.


Attached File(s)
.txt  backup.sh-local.txt (Size: 22.2 KB / Downloads: 19)
02-19-2011 02:28 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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