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