fixunix
Tags Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

mksysb restore - Aix

This is a discussion on mksysb restore - Aix ; Hi All, I am creating a nightly mksysb image (mksysb -ie /dir/hostname.mksysb) How can I restore a particular file such as /var/adm/messages into a particular location? TIA...


Fix Unix > Unix > Aix > mksysb restore

Reply
 
LinkBack Tools
  #1  
Old 10-04-2007, 12:20 AM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default mksysb restore

Hi All,

I am creating a nightly mksysb image (mksysb -ie /dir/hostname.mksysb)

How can I restore a particular file such as /var/adm/messages into a
particular location?


TIA

Reply With Quote
  #2  
Old 10-04-2007, 12:20 AM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: mksysb restore

1. use tctl command to position mksysb tape at the beginning of fourth
image.

2. use following example from AIX Infocenter:
-----------------------------
# To restore a specific file, type:

restore -xvqf myhome.bkup system.data

This command extracts the file system.data into the current directory
from the archive myhome.bkup. The archive in this example is in the
current directory. File and directory names must be specified as they
are displayed when using the -T flag. The -v flag displays additional
information during the extraction. This example applies to both
file-name and file-system archives.
-----------------------------

Of course, substitute myhome.bkup with /dev/rmt0 (or similiar, if you
have multiple such devices configured).

Reply With Quote
  #3  
Old 10-04-2007, 12:20 AM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: mksysb restore

Mag wrote:
M> Hi All,
M>
M> I am creating a nightly mksysb image (mksysb -ie /dir/hostname.mksysb)
M>
M> How can I restore a particular file such as /var/adm/messages into a
M> particular location?
M>
M>
M> TIA
M>

/usr/bin/restorevgfiles -f /dev/rmt0 -d /particular/location ./var/adm/messages

assuming the image is on rmt0.

--
"... I shook my family tree, and a bunch of NUTS fell out ..."
Reply With Quote
Reply

Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
new lpar cant boot after mksysb restore - no hdisk unix Aix 2 02-28-2008 12:08 PM
mksysb restore AIX 5.3 unix Aix 6 02-26-2008 05:55 AM
AIX 5.3 ML05 maitenance mode from 1st mksysb/mkcd-cd starts restore instead of boot-menu unix Aix 2 10-04-2007 12:59 AM
External VGs after a mksysb restore unix Aix 0 10-04-2007 12:59 AM
NIM mksysb restore - missing /proc unix Aix 0 10-04-2007 12:41 AM


All times are GMT. The time now is 08:35 AM.