473,513 Members | 2,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Recover Using INCREMENTAL AUTOMATIC

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
3 3127
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
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
Never mind. I found it.

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2214
by: jane | last post by:
HI, I had a question on incremental backup. We had an incremental backup every weekend. We did full backup every other week. That is one week incremental + full , the other week is...
1
3456
by: Jimmy Chen | last post by:
Recently I've done a db2 backup and restore/recovery, but the process for recovering the database was different than what I thought to be. here is what I did: DB2 is set in online mode -...
5
3808
by: Prem K Mehrotra | last post by:
I come from Oracle background. In Oracle, when one wants to do a point in time recovery, one can specify recover database until timestmap. Oracle's database maps to a db2 subsystem, i.e., in...
3
786
by: apple | last post by:
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?...
2
5817
by: Mary | last post by:
Hello, I am having a problem with the cl compiler. I have written a C class (RegConnect.c) which uses Win32 API functions such as RegOpenKey, RegCloseKey etc. Initially when I was trying to...
6
6524
by: Rudy Ray Moore | last post by:
I work with a multi-project workspace. One project (the "startup" project) has a "Configuration Type" of "Application (.exe)". The other 40 projects have a "Configuration Type" of "Static Library...
0
4257
by: prerak_v_shah | last post by:
Hi All, These days I was working on IBM DB2 database for windows with my .Net Application. Now, it was required to backup database created on one machine to the other machine. I was also able...
35
2984
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files....
2
1427
by: ghardaway | last post by:
My text box and all of its content disappeared from my screen. It is still there in print preview mode, and my automatic pagination does account for the page. How do I recover it so that it is...
0
7254
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7094
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7519
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5079
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1585
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.