![]() | |||||||||||||||||||||||||||||
| Enlaces Esta en: documentos
| Directorio
Copia de seguridad: Un script que realiza un copia de seguridad sólo de los ficheros modificados desde la última copia. La copia se hace en /cseg en un directorio cuyo nombre es la fecha de la copia: También en /cseg hay un fichero vacío llamado "ultimo" para mantener la fecha de la última copia realizada. #!/bin/bash fecha=`date +%Y%m%d` mkdir /cseg/$fecha tar cfz /cseg/$fecha/etc-$fecha.mod.tar.gz $(find /etc -newer /cseg/ultimo ! -type d) tar cfz /cseg/$fecha/pgsql-$fecha.mod.tar.gz $(find /var -newer /cseg/ultimo ! -type d) tar cfz /cseg/$fecha/home-$fecha.mod.tar.gz $(find /home -newer /cseg/ultimo ! -type d) touch/cseg/ultimo Página Principal |
Utilidades | |||||||||||||||||||||||||||
