99 System Backup Version A.01 H3064S Module 13 Slides.
-
Upload
frank-peters -
Category
Documents
-
view
216 -
download
0
Transcript of 99 System Backup Version A.01 H3064S Module 13 Slides.
1
System Backup
Version A.01H3064S Module 13 Slides
2 © 1999 Hewlett-Packard Co.
H3064S A.01
Why Back Up?
How Much Data Can You Afford To Lose? Data is sometimes lost by:
• File system corruption• Accidental removal of files• Hardware failures• System crash
Regular backups:• Minimize data loss• Keep users happy• Provide stability and order
a669141
3 © 1999 Hewlett-Packard Co.
H3064S A.01
What Do You Back Up?
• Backup the entire file system (full backup)• Backup part of the file system
– Files that have changed since the last backup (incremental or delta backups)
– A subtree of the file system – Application data– Users' files
• Backup the database configuration • Backup the LVM configuration
a66955
4 © 1999 Hewlett-Packard Co.
H3064S A.01
How Often Do You Back Up?
a66956
Fri Mon Tues Wed Thurs
100%
5 © 1999 Hewlett-Packard Co.
H3064S A.01
How Do You Perform the Backup?
Backupsand
Archives
a66957
• fbackup/frecover are the most flexible standard HP-UX backup utilities.
• Other utilities are available as well.
6 © 1999 Hewlett-Packard Co.
H3064S A.01
Using fbackup
a66958
Backing up a single Directory or FileExamples
fbackup -f /dev/rmt/0m -i /home -I index.home
fbackup -f /dev/rmt/0m -i . -I index.pwd
Full and Incremental BackupsExamples
cd /var/adm/fbackupfiles
vi graph
i /
e /cdrom
fbackup -f /dev/rmt/0m -u0g graph -I index.full
fbackup -f /dev/rmt/0m -u1g graph -I index.incremental
7 © 1999 Hewlett-Packard Co.
H3064S A.01
Using frecover
Restoring Files and DirectoriesExamples
frecover -f /dev/rmt/0m -rv
frecover -f /dev/rmt/0m -i /home/user1 -xv
frecover -f /dev/rmt/0m -i /home/user2 -xv
Extracting an IndexExample
frecover -f /dev/rmt/0m -I index
a66959
8 © 1999 Hewlett-Packard Co.
H3064S A.01
Network Backup and Recovery
a66960
minnie mickie donald
donald# vi ~root/.rhosts mickie minnie
mickie# fbackup -f donald:/dev/rmt/0m -u0g graph -I indexminnie# fbackup -f donald:/dev/rmt/0m -u0g graph -I index
mickie# frecover -f donald:/dev/rmt/0m -rvminnie# frecover -f donald:/dev/rmt/0m -rv
tape
9 © 1999 Hewlett-Packard Co.
H3064S A.01
Being Prepared with make_recovery
a66961
System RecoveryBoot Tape
The “System RecoveryBoot Tape” can be usedto recover from any diskfailure in vg00.
Boot LIF Area
/
/stand
/usr
vg00
60m
10 © 1999 Hewlett-Packard Co.
H3064S A.01
Creating a Recovery Tape
a66962
Recovery TapeBoot Area
/ filesystem
vg00
List of fileson RecoveryTape
makerec.last Log File
Create a recovery tape and log file.# make_recovery -C
60m
11 © 1999 Hewlett-Packard Co.
H3064S A.01
Updating the Recovery Tape
a66963
Boot Area
/ filesystem
vg00
List of fileson RecoveryTape
makerec.last Log File
Compare current OS files to recovery tape:# check_recovery