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.