LINUX backup ....

LINUX backup ....

 

  

Hi all,

Just inherited this Linux server and currently it is doing a backup of the whole 500GB+ into tape via a script as follows ... excluding the '=' of course ...

====================================================

#!/bin/ksh
/etc/init.d/oracle stop
(
mt -f /dev/st0 rewind
cd /
tar -b 1024 -cvf /dev/st0 ./* > /tmp/backup_log 2> /tmp/backup_error.log
)
/etc/init.d/oracle start
mt -f /dev/st0 eject

====================================================

Checking the error log, I have lots of messages like these ones ...

====================================================

tar: ./opt/dell/srvadmin/oma/omintf22dd: socket ignored
tar: ./opt/dell/srvadmin/oma/omintf225d: socket ignored
tar: ./opt/dell/srvadmin/oma/omintfec1: socket ignored
tar: ./opt/dell/srvadmin/oma/omintfeb3: socket ignored
......
tar: ./proc/9650/task/9650/exe: Cannot readlink: No such file or directory
tar: ./proc/9650/exe: Cannot readlink: No such file or directory
tar: ./proc/28306/task/28306/exe: Cannot readlink: No such file or directory
tar: ./proc/28306/exe: Cannot readlink: No such file or directory
tar: ./proc/28859/task/28859/exe: Cannot readlink: No such file or directory
tar: ./proc/28859/exe: Cannot readlink: No such file or directory
tar: ./proc/8440/task/8440/fd/4: Cannot stat: No such file or directory
tar: ./proc/8440/fd/4: Cannot stat: No such file or directory
tar: ./proc/8925: Cannot stat: No such file or directory
tar: ./proc/19369: Cannot stat: No such file or directory
tar: ./sys/module/raw/sections/.strtab: File shrank by 4085 bytes; padding with zeros
tar: ./sys/module/raw/sections/.symtab: File shrank by 4085 bytes; padding with zeros
tar: ./sys/module/raw/sections/.bss: File shrank by 4085 bytes; padding with zeros
tar: ./sys/module/raw/sections/.gnu.linkonce.this_module: File shrank by 4085 bytes; padding with zeros
tar: ./sys/module/raw/sections/.data: File shrank by 4085 bytes; padding with zeros
tar: ./sys/module/raw/sections/__versions: File shrank by 4085 bytes; padding with zeros
tar: ./sys/module/raw/sections/.rodata.str1.1: File shrank by 4085 bytes; padding with zeros
tar: ./sys/module/raw/sections/.exit.text: File shrank by 4085 bytes; padding with zeros
tar: ./sys/module/raw/sections/.init.text: File shrank by 4085 bytes; padding with zeros
tar: ./sys/module/raw/sections/.text: File shrank by 4085 bytes; padding with zeros
......
tar: ./var/tmp/.oracle/s#25387.1: socket ignored
tar: ./var/tmp/.oracle/s#26023.1: socket ignored
tar: ./var/tmp/.oracle/s#4959.1: socket ignored
tar: ./var/tmp/.oracle/s#4959.2: socket ignored
tar: ./var/tmp/.oracle/s#5034.1: socket ignored
tar: ./var/tmp/.oracle/s#5529.1: socket ignored
tar: ./var/tmp/.oracle/s#6886.1: socket ignored
tar: ./var/tmp/.oracle/s#4743.1: socket ignored
tar: ./var/tmp/.oracle/s#4976.1: socket ignored

====================================================

As far as I can tell, these errors seem to be acceptable, some are temporary files where the size have changed, some are not "real" file but socket files. What are socket files anyway? Forgive my ignorance if you will ...

Does anyone have a ready-made script that I can borrow to do my backups? Using the web, I've found some OpenSource backup softwares like Amanda but am wanting to start with using a "simple" UNIX script first .... so anyone who is willing to share theirs, please do so ... Am probably looking at running a similar script as it is now except to tell it to skip socket files and other temporary files whose change may be varying ...

Finally, is it possible to do a bootable backup of the current production server ... ??? Is there a command for that or it has to be scripted ...

Thanks in advance ...




DB2 & UDB email list listserv db2-l LazyDBA home page