Help Needed Digital Unix 4.0d Script For VDUMP
#1
Scooby Regular
Thread Starter
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes
on
0 Posts
Dont know Digital UNIX, I am a Solaris man, but it is basically SVR4 with a few tweaks.
I assume vdump is similar to ufsdump, so the vdump command looks ok. Not sure if you need to back up /temp.
Other than that, i cant see any problems
Dave
I assume vdump is similar to ufsdump, so the vdump command looks ok. Not sure if you need to back up /temp.
Other than that, i cant see any problems
Dave
#2
anybody help on this please, have to do a vdump backup of my system. Unix knowledge very poor.
This is the script I have written etc
Need to get it right as I only have one slot of time over weekend to perform
thanks in advance
Jase
# cat /archive/full_backup
# this script will perform a full backup
# to the DLT drive which is identified as /dev/rmt1h
#
TMPDIR=/archive
BACKUPDIR="."
TAPEDEVICE=/dev/rmt1h
USER=root
cp /archive/full_backup.log /archive/full_backup.log.prev
cp /dev/null /archive/full_backup.log
/bin/mt -f /dev/rmt1h rewind
su oracle7 /oracle/v734/bin/dbshut_immediate >/dev/null 2>&1
date
/sbin/vdump 0uf /dev/nrmt1h /
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /usr
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /oracle
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /glovia
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /rollback
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /archice
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /datademo
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /redo1
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /data
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /datacl
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /indexes
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /indexescl
sleep 20
date/sbin/vdump 0uf /dev/nrmt1h /redo2
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /temp
sleep 20
date
/bin/mt -f /dev/rmt1h rewind
su oracle7 /oracle/v734/bin/dbstart >/dev/null 2>&1 | tee -a /archive/full_backup.log
[This message has been edited by jase555 (edited 20 September 2001).]
[This message has been edited by jase555 (edited 20 September 2001).]
This is the script I have written etc
Need to get it right as I only have one slot of time over weekend to perform
thanks in advance
Jase
# cat /archive/full_backup
# this script will perform a full backup
# to the DLT drive which is identified as /dev/rmt1h
#
TMPDIR=/archive
BACKUPDIR="."
TAPEDEVICE=/dev/rmt1h
USER=root
cp /archive/full_backup.log /archive/full_backup.log.prev
cp /dev/null /archive/full_backup.log
/bin/mt -f /dev/rmt1h rewind
su oracle7 /oracle/v734/bin/dbshut_immediate >/dev/null 2>&1
date
/sbin/vdump 0uf /dev/nrmt1h /
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /usr
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /oracle
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /glovia
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /rollback
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /archice
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /datademo
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /redo1
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /data
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /datacl
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /indexes
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /indexescl
sleep 20
date/sbin/vdump 0uf /dev/nrmt1h /redo2
sleep 20
date
/sbin/vdump 0uf /dev/nrmt1h /temp
sleep 20
date
/bin/mt -f /dev/rmt1h rewind
su oracle7 /oracle/v734/bin/dbstart >/dev/null 2>&1 | tee -a /archive/full_backup.log
[This message has been edited by jase555 (edited 20 September 2001).]
[This message has been edited by jase555 (edited 20 September 2001).]
#3
Scooby Regular
You would be better off with something like Amanda for that, but it looks ok to me. Is /temp your swap partition? Check with `mount | grep temp', you won't want to back that up if it is.
Steve.
Steve.
#5
Scooby Regular
Join Date: Apr 2001
Location: Hants
Posts: 1,103
Likes: 0
Received 0 Likes
on
0 Posts
Looks good to me. Assuming that /temp is where Oracles temporary table space is, would you be better of just recreating it?
Should you take the machine to single user to backup / and /usr? Do not forget to test the backups
Is Oracle 7.3.4 still supported? Live in the now!
Edited because I forget stuff!
[This message has been edited by orbv (edited 20 September 2001).]
Should you take the machine to single user to backup / and /usr? Do not forget to test the backups
Is Oracle 7.3.4 still supported? Live in the now!
Edited because I forget stuff!
[This message has been edited by orbv (edited 20 September 2001).]
#6
Scooby Regular
You don't need to be in single user mode to back up anything, all it does is read from the disk. Upgrading Oracle isn't quite as simple as it sounds, not for technical but for business reasons.
Steve.
Steve.
Thread
Thread Starter
Forum
Replies
Last Post
MH-Racing
Subaru Parts
18
18 October 2015 04:49 PM
robbie1988
Wanted
2
13 September 2015 09:25 AM
Scooby-Doo 2
Wheels And Tyres For Sale
1
09 September 2015 06:51 PM