Sponsored Content
Top Forums UNIX for Dummies Questions & Answers AIX + backup or mksysb (yes i did a search) Post 5107 by Optimus_P on Tuesday 7th of August 2001 04:47:52 PM
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..
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
SCSI_STOP(8)							     SG3_UTILS							      SCSI_STOP(8)

NAME
scsi_stop - stop (spin down) one or more SCSI disks SYNOPSIS
scsi_stop [--help] [--verbose] [--wait] DEVICE [DEVICE]* DESCRIPTION
This bash shell script calls the sg_start utility on each given DEVICE. The purpose is to spin down (stop) each given DEVICE. OPTIONS
Arguments to long options are mandatory for short options as well. -h, --help print out the usage message then exit. -v, --verbose increase level or verbosity. -w, --wait wait for the spin down (stop) on each given DEVICE to complete. The default action is to do each stop in immediate mode. NOTES
The sg_start utility calls the SCSI START STOP UNIT command and can either start (spin up) or stop (spin down) a SCSI disk depending on the given command line options. EXIT STATUS
The exit status of this script is 0 when it is successful. Otherwise the exit status is that of the last sg_start utility called. See the sg3_utils(8) man page. AUTHORS
Written by D. Gilbert COPYRIGHT
Copyright (C) 2009-2013 Douglas Gilbert This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR- POSE. SEE ALSO
sg_start (sg3_utils) sg3_utils-1.36 May 2013 SCSI_STOP(8)
All times are GMT -4. The time now is 01:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy