AIX + backup or mksysb (yes i did a search)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers AIX + backup or mksysb (yes i did a search)
# 1  
Old 08-07-2001
AIX + backup or mksysb (yes i did a search)

Whats up guys. I dont ask many questions but this time i need a quick one answerd.

NOS: AIX 4.3.3 and 4.3.2
BOX: RS/6000 F50

i have 12 pv's (mirrored) and 2 vg's and i want them both backed up @ once on one tape drive so i can do it via cron.

I have looked at mksysb and backup. my main question would be

I know if i do a "/usr/bin/mksysb '-i' /dev/rmt0" it will backup rootvg. is there also a way to get it to back up vg1?

OR

would you recomment I do a "/usr/sbin/backup -f'/dev/rmt0' -'0' '-u' /cw_d01" for each jfs? and can i add more then just cw_d01 to the backup command to look something like this:

/usr/sbin/backup -f'/dev/rmt0' -'0' '-u' /cw_d01 /usr /home
# 2  
Old 08-07-2001
would this be more senseable?

Code:
#! /bin/ksh
#
#       This script is intended to be used on AIX 4.3.3 and 4.3.2 ONLY.
#       This will use the backup utility doing a level 0 dump on any filesystem defined for $filesys and update /etc/dumpdates.
#       Arguments:
#               DEVICE = backup device
#               DUMPINFO = file that will collect info to be emailed out
#               MARK = possition on the tape
#

DEVICE="/dev/null"
DUMPINFO=/var/adm/dumpinfo
FILESYSTEMS="/ /usr /var /home /cw_d01 /cw_t01"
MARK=1

echo > $DUMPINFO

for filesys in $FILESYSTEMS; do
        echo "Date: `date`
Filesystem: $filesys
Position: $MARK
Device: $DEVICE
        " >> $DUMPINFO
        /usr/sbin/backup -f $DEVICE -0 -u $filesys
        MARK=`expr ${MARK} + 1`
done
sleep 20
mt -f $DEVICE rewoffl


Last edited by Optimus_P; 08-08-2001 at 07:17 PM..
# 3  
Old 08-08-2001
For backing up vg1 you can use the command "savevg". Look at man savevg. The syntax is simitar to mksysb. tho put it in the same tape, try using for the backup device /dev/rmt0.1 (norewind). I did not the test, but teorically the command will not rewind the tape and the next command will continue in the tape without overwriting the data.

any questions tell me.

HTT
# 4  
Old 08-08-2001
i am reading the man page right now.
# 5  
Old 08-08-2001
IMHO, mksysb is not just a backup.
It's the first step in a complete 'Computer Disaster Recovery' plan that let's you recreate your system in case off 'something going very wrong'.

So, dispite the tools one uses to make backups of his/her system, always make a mksysb tape when you change something to AIX the software or the root volume group.

Regards
Gert
# 6  
Old 08-08-2001
well i have opted to just go with /usr/bin/backup for my filesystems. I liek the way the restore command is just like ufsrestore.

I checked into savevg and its restore counterpart and altho they do look very niCe. I couldnt decifer from the man page if i can do a file by file search and restore. so the above script will work. Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX 7.2 MKSYSB Backup and Restore Best Practices?

Hello, Running AIX 7.2 on Power9 bare-metal (no LPAR and no NIM server), in the process of creating a guide on MKSYSB process. I understand that MKSYSB is a backup of the rootvg and we can exclude stuff via exclude.rootvg file, the rest of the data volumes are mapped to the system as LUNs via... (7 Replies)
Discussion started by: c3rb3rus
7 Replies

2. AIX

Need help with mksysb backup on a DVD

i have an AIX server and planning to upgrade the operating system, before that i want to take a system backup which can be used in case of upgrade failure. i dont have NIM server t hold the mksysb backups. so i have the only option of taking the backup on DVD. i have the following optical drive... (5 Replies)
Discussion started by: saikiran_1984
5 Replies

3. AIX

MKSYSB backup

Hi, Currently we are taking mksysb backup through smitty mksysb command and directing the backup to happen on a tape.We have inbuilt tape drives in the AIX servers. Can we take the mksysb backup through 3rd party software tool (Symantec netbackup of IBm TSM). If yes what is the procedure and... (4 Replies)
Discussion started by: dwiravi
4 Replies

4. AIX

mksysb backup

hi we are having one rootvg in that we created one lv named mksysb_backuplv and normally script will run accordingly to take the backup in the cron,here i just want to know if any rootfilesystem was correpted like /usr or /tmp ,then how could i restore the particular filesystme from the... (1 Reply)
Discussion started by: senmak
1 Replies

5. AIX

Need to take MKSYSB backup

Hi, Can any one suggest me how to take the mksysb backup in CD (VCD/DVD). I have tried like #mkcd -d /dev/cd0, but its not working. (3 Replies)
Discussion started by: oprakash
3 Replies

6. AIX

How to restore from mksysb backup

system is not booting ... i want to restore from mksysb backup. (2 Replies)
Discussion started by: AIXlearner
2 Replies

7. AIX

How to list files in AIX 3.2 mksysb backup tape

Hi, Can anyone tell how to list files in a AIX 3.2 mksysb backup tape. Thanks! Victor Cheung (4 Replies)
Discussion started by: victorcheung
4 Replies

8. AIX

mksysb backup

hi guys, i just want to take my server's mksysb backup through dvd-rom.but am having the doubt that, while am taking the mksysb backup in image it shows 8GB. So can i confirm that it takes 2 dvds and after writing in 1st cd it will ask for 2nd cd?????? please help me out. (1 Reply)
Discussion started by: rrlog
1 Replies

9. AIX

mksysb backup testing

Hi All i have a number of IBM servers with different models, and i want to do a backup for the rootvg using mksysb and that backup will be stored on a 4mm DDS tape. i have only one machine (p550) which i can use it for testing purposes, so the quesion is that can i test my mksysb backups on... (6 Replies)
Discussion started by: TheEngineer
6 Replies

10. AIX

mksysb backup

How I can to obtain a full Backup of a AIX server with the command "mksysb"?? what is the correct form? Thanks (1 Reply)
Discussion started by: granador
1 Replies
Login or Register to Ask a Question