quinta-feira, abril 07, 2005
LX Exemplo de backup
echo 'Inicio do Backup'
cd /boot
ls -laF > ls.txt
tar -chjf backup/`date +%d-%b-%Y-%l%M`.tar.bz2 System.map bzImage initrd ls.txt
rm ls.txt -f
cd /lib/modules/
ls -laF > ls.txt
tar -chjf backup/`date +%d-%d-%Y-%l%M`.tar.bz2 modules/ ls.txt
rm ls.txt -f
echo 'Fim do Backup !'
cd /boot
ls -laF > ls.txt
tar -chjf backup/`date +%d-%b-%Y-%l%M`.tar.bz2 System.map bzImage initrd ls.txt
rm ls.txt -f
cd /lib/modules/
ls -laF > ls.txt
tar -chjf backup/`date +%d-%d-%Y-%l%M`.tar.bz2 modules/ ls.txt
rm ls.txt -f
echo 'Fim do Backup !'