Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX - Tape backup 2

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Does any one please tell me how to get the root partition backed up on a tape. Will it backup the /usr aswell ?
In my machine /usr and /var in two other different partitions. ( diffrent monut points - ofcourse)
 
mksysb backups only volume group rootvg, so it will backup /usr if you haven't intentionally moved it off the rootvg volume group, you should be able to backup other volume groups on same or other tape(s) too
 
If you don't need to create a bootable tape but still want everything on the system backed up you can try this:

find / -print|backup -ivqf/dev/rmtx

But it might take several tapes. You will be prompted for the next one at the appropriate time.



 
Thanks.

What is the restore command incontrast to backup

(find / -print|backup -ivqf/dev/rmtx)


THX.
 
a mksysb (for the rootvg) and a savevg (for other volume groups) are really
a better deal in my opinion. You have the size of the partitions, the names, and the data. You can recreate the volume group or just a few files.... It doesn't take that much longer to make a bootable mksysb and that backs up usr and var and everything in rootvg that is mounted.

General info about backing up and restoring.

Backup by Name:
find / -print | backup -i -f /dev/rmt0

Listing of backup tape:
restore -Tvf /dev/rmt0

Restoring a file:
restore -xvf /dev/rmt0 /home/mike/chap1

(REMEMBER to remove the restoresymtable file when you are done from the current directory....this can fill up your directory if you leave it. It is used to determine when to delete files, link files, update files, etc on the next incremental restore.)
----------------------------------------------------------------------------------
restore Command

List files on media restore -T [-q] [-v] [-f device]
For example:
#restore -Tvf /dev/rmt0
Restore individual files. Pathnames on backup by name are preserved. restore -x [-q] [-v] [-f device] [file1 file2..]
For example:
#restore -xvf /dev/rmt0 /home/mike/manual/chap1
Restore complete file system restore -r [-q] [-v] [-f device]
Restore backups in order i.e. -0 then -1 etc.
#restore -rqvf /dev/rmt0

-=----------------------
To restore from a mksysb. You can either go into service mode and select a full restore of your mksysb to whichever disks you need, or you can restore a few files from the mksysb only.

To restore a few files :
restore -s4 -xdvf /dev/rmt0.1 ./etc/myfiles
Remember that you must either put them in a directory that does not contain a file by the same name, or you must remove the original file first before doing a restore. Also (REMEMBER to remove the restoresymtable file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top