Backup rootvg using mksysb command.
Backup and restore other volume groups using savevg and restvg commands.
Restore files backed-up using restore commands
Backup rootvg using mksysb
mksysb- Creates an installable image of the root volume group either in a file or on to a bootable tape
- Bootable tape is created in backup format
- Can be restored individual files/directories using restore command
-e /excludes files in /etc/exclude.rootvg
-i to create image.data file
-v verbose mode
-X extend /tmp filesystem if necessory for storing boot image
-i option calls mkszfile command which inturn creates image.data file.
The bootable mksysb volume contains four images
- Boot image
- bosinstall image (image.data, bosinst.data, tapeblksz, etc..)
- An empty table of contents
- System Backup Image in Back up format
/bosinst.data file contains answer for questions during installation time such as Console name, Installation methode, locale seetings, etc.. If there is no /bosinst.data file present, then a sample file /usr/lpp/bosinst/bosinst.template is copied as /bosinst.data during backup process.
/image.data file contains logical volume and filesystem information of root volume group which is used by BOS install for creating target rootvg. If you want to create a custom image.data file, create the file using mkszfile, modify the file as per your requirement and call the mksysb command without -i option.
With these two files, it is possible to carry out an un-attended installation.
Examples:
To create system backup and create an /image.data file
# mksysb -i /dev/rmt0
To exclude files and directories stored in /etc/exclude.rootvg file
# mksysb -i -e /dev/rmt0
To store the mksysb image to a file called /stage/backp/mksysb.img
# mksysb /stage/backp/mksysb.img
Backup VG using savevg
savevg command is used to backup volume groups other than rootvg restvg command is used to restore volume groups other than rootvgsavevg
-e excludes files/directories being backed in /etc/exclude. file
-i creates /tmp/vgdata//.data file
-f device or filename on which the image to be stored
-v verbose mode
-X automatically expand /tmp filesystem if required
-i option calls mkvgdata command which inturn creates /tmp/vgdata//.data file
Restore files using restore command
restore
-q tells restore commnad that volume is ready
-t, -T to list the list of files in the backup archive
-v verbose
-r restores all files in the filesystem archive
-x to restore specifig files/directories
-d to restore all files in a directory if the File parameter is a directory
-s To seek and restore the multiple backup tapes
To list the names of files in either a file-name or file-system archive
# restore -Tq -f /dev/rmt0
To list all the files in a mksysb tape backup
# restore -Tvqs 4 -f /dev/rmt0.1
To restore an entire file-system archive, enter:
# restore -rvqdf /dev/rmt0
To restore a specific file
# restore -xvqf myhome.bkup system.data
To restore a specific file "/etc/passwd" from mksysb image file "mksysb.host1"
# restore -xvqdf mksysb.host1 ./etc/passwd
1 comments:
Write commentsEu gosto do útіl informaçãо você fornecer
Replyem seus artigos. Εu vou indicador ѕeu weblog
е verifique novamente ɑqᥙі regularmente. Ꭼu sou baѕtante certos еu vou
aprender mᥙito coisas novas aquі! Boa sorte ρara
o próximo!
What do you think about this Article? Add your Opinion..! EmoticonEmoticon