By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,649 Members | 1,560 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,649 IT Pros & Developers. It's quick & easy.

Recover Using INCREMENTAL AUTOMATIC

P: n/a
UDB v8 fp 6a on AIX 5.1.0.0

Below is a manual incremental recover from compressed backup datasets.
With external compress backup datasets, can it be coded to do an
automatic incremental recover? The manual incremental recover works
just fine, but having trouble getting the automatic incremental recover
to work. Thanks for your help

# INCREMENTAL BACKUP
mkfifo /db2backup04/db2inst4/backups/SAMPLE.pipe1I
mkfifo /db2backup05/db2inst4/backups/SAMPLE.pipe2I

uncompress
/db2backup04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041130071003 .1.Z

uncompress
/db2backup05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041130071003 .2.Z

cat
/db2backup04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041202155534 .1
/db2backup04/db2inst4/backups/SAMPLE.pipe1I &
cat
/db2backup05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041202155534 .2 /db2backup05/db2inst4/backups/SAMPLE.pipe2I &
nice db2 restore database SAMPLE incremental from
/db2backup04/db2inst4/backups/SAMPLE.pipe1I ,
/db2backup05/db2inst4/backups/SAMPLE.pipe2I taken at 20041202155537
with 2 buffers buffer 2048 parallelism 1 without prompting
rm /db2backup04/db2inst4/backups/SAMPLE.pipe1I
rm /db2backup05/db2inst4/backups/SAMPLE.pipe2I
#FULL BACKUP
mkfifo /db2backup04/db2inst4/backups/SAMPLE.pipe1
mkfifo /db2backup05/db2inst4/backups/SAMPLE.pipe2

uncompress
/db2backup04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041130071003 .1.Z

uncompress
/db2backup05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.200
41130071003.2.Z

cat
/db2backup04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041202153832 .1 /db2backup04/db2inst4/backups/SAMPLE.pipe1 &
cat
/db2backup05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041202153832 .2 /db2backup05/db2inst4/backups/SAMPLE.pipe2 &
nice db2 restore database SAMPLE incremental from
/db2backup04/db2inst4/backups/SAMPLE.pipe1 ,
/db2backup05/db2inst4/backups/SAMPLE.pipe2 taken at 20041202153835 with
2 buffers buffer 2048 parallelism 1 without prompting

rm /db2backup04/db2inst4/backups/SAMPLE.pipe1
rm /db2backup05/db2inst4/backups/SAMPLE.pipe2

# INCREMENTAL BACKUP

mkfifo /db2backup04/db2inst4/backups/SAMPLE.pipe1I
mkfifo /db2backup05/db2inst4/backups/SAMPLE.pipe2I

uncompress
/db2backup04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041130071003 .1.Z

uncompress
/db2backup05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041130071003 .2.Z

cat
/db2backup04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041202155534 .1 /db2backup04/db2inst4/backups/SAMPLE.pipe1I &
cat
/db2backup05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041202155534 .2 /db2backup05/db2inst4/backups/SAMPLE.pipe2I &


nice db2 restore database SAMPLE incremental from
/db2backup04/db2inst4/backups/SAMPLE.pipe1I ,
/db2backup05/db2inst4/backups/SAMPLE.pipe2I taken at 20041202155537
with 2 buffers buffer 2048 parallelism 1 without prompting

rm /db2backup04/db2inst4/backups/SAMPLE.pipe1I
rm /db2backup05/db2inst4/backups/SAMPLE.pipe2I

Nov 12 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Ian
apple wrote:
UDB v8 fp 6a on AIX 5.1.0.0

Below is a manual incremental recover from compressed backup datasets.
With external compress backup datasets, can it be coded to do an
automatic incremental recover? The manual incremental recover works
just fine, but having trouble getting the automatic incremental recover
to work. Thanks for your help


If you modify (i.e. compress, relocate, etc) the files that DB2 produces
during a backup, I would be flabbergasted if DB2 can automatically
recover.

You might try using the COMPRESS option on backup, so you don't have to
manually compress the backups after the fact.

Nov 12 '05 #2

P: n/a
Thanks Ian for the reply.

Where is the Compress option on the backup that you specified. I don't
see it in the manuals. Here's how we backup:

mkfifo /db2backup04/db2inst4/backups/SAMPLE.pipe1I

mkfifo /db2backup05/db2inst4/backups/SAMPLE.pipe2I

cat /db2backup04/db2inst4/backups/SAMPLE.pipe1I | nice -n 10 compress >
/db2back
up04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041207071004 .1.Z
&
cat /db2backup05/db2inst4/backups/SAMPLE.pipe2I | nice -n 10 compress >
/db2back
up05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041207071004 .2.Z
&
nice db2 backup database SAMPLE online INCREMENTAL to
/db2backup04/db2inst4/backups/SAMPLE.pipe1I ,
/db2backup05/db2inst4/backups/SAMPLE.pipe2I with 2 buffers buffer 1024
parallelism 1

rm /db2backup04/db2inst4/backups/SAMPLE.pipe1I
rm /db2backup05/db2inst4/backups/SAMPLE.pipe2I

Nov 12 '05 #3

P: n/a
Never mind. I found it.

Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.