Backup and Recovery
1 Full backup
2 incremental backup
fbackup, tar, cpio, dump/restore, xdump,xrestore
fbackup
only in HP_UX . Will support largefiles, multiple independent backup in the same media is not possible
-u updating /var/adm/fbackupfiles/dates
-g graph files
-f device file
-i including file
-e excluding file
-I creating an index file
-0 -9 level of backup
graph file
# cd /var/adm/fbackupfiles
# vi /graph
i /
e /cdrom
# fbackup –f /dev/rmt/0m –u0g graph –I index.full
Will take the full backup included in graph file to /dev/rmt/0m and update the /var/adm/fbackupfiles/dates and write an index file in the pwd
# fbackup –f /dev/rmt/0m –u1-g graph –I index.incrimental
# fbackup –f /dev/rmt/0m –i /home –I index.home
#fbackup –f /dec/rmt/0m –i / -e /cdrom –I intex.root.
# fbackup –f /dev/rmt/0m –i . –I intex.pwd
frecover
-r full content in the tape
-v verbose
-x extracting selected files by using –i option
-I by using index file
-h used to reciver only directories by avoiding the contents
-o for force recover
-F avoiding the path /usr/vi and /opt/sh will restore to /home/root with
/home/root/vi and /home/root/sh.
-X opposite to –F result will be /home/root/usr/vi and /home/root/opt/sh
-g graph file
# frecover –f /dev/rmt/0m –rv will read the full content of tape
# frecover –f /dev/rmt/0m –xrv will extract the full content of tape
# frecover –f /dev/rmt/0m –i /user1/home –xv will extract only /user1/home
# frecover –f /dev/rmt/0m –I intex.pwd –xv will read the intex of tape and extract
# frecover –f /dev/rmt/0m –g graph –xv will read the graph file and extract.
Running Backup across Network ( Network backup)
Two systems system1 and system2
System1# fbackup –f system2:/dev/rmt/0m –u0g graph –I intex
System1# frecover –f system2:/dev/rmt/0m –xrv
Making bootable tape
1 install ignite-ux
2 # make_recovery –A –C –d /dev/rmt/0m.
will create a log file in /var/opt/ignite/recovery/makerec.last