If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > How to backup DB and AP on one tape?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-20-04, 21:33
dolphin4022 dolphin4022 is offline
Registered User
 
Join Date: Jul 2004
Posts: 6
How to backup DB and AP on one tape?

Hi,

I've only one tape driver on my Informix server.
I need to backup Informix and applications on one tape via cron job.
What shall I do? How can I "ontape" databases and "tar" applications to one
tape? And, How to restore them?
Thank.
Reply With Quote
  #2 (permalink)  
Old 07-21-04, 00:34
ServerMetrics ServerMetrics is offline
Registered User
 
Join Date: May 2004
Posts: 45
I don't think it's possible since ontape and tar are different formats - each will be unaware of the other's presence on the tape. If you really have to backup both the server and filesystem together you may need to move to the dbspace file format as opposed to raw devices. That way the dbspace files will be visible to tar and can be backed up as part of the filesystem. The only drawback would be referential-integrity issues - don't have transaction-processing occuring when you are backing up the dbspace files!
__________________
Keith Brownlow
ServerMetrics DB Monitoring (www.servermetrics.com)
Reply With Quote
  #3 (permalink)  
Old 07-21-04, 00:48
pathri pathri is offline
Registered User
 
Join Date: Apr 2004
Location: zxczxczxc
Posts: 52
How to backup DB and AP on one tape?

Hi,
Do a Ontape on to the disk itself and backup all the filesystems with tar.
If u want to resore the same, extract the ontape backup from tape to disk and perform a restore.

Bye.
__________________
zxczxczc
Reply With Quote
  #4 (permalink)  
Old 07-21-04, 21:42
dolphin4022 dolphin4022 is offline
Registered User
 
Join Date: Jul 2004
Posts: 6
What command or syntax can let "ontape" to save the DB to disk instead of backuping to tape?
Thank you.
Reply With Quote
  #5 (permalink)  
Old 07-22-04, 00:25
pathri pathri is offline
Registered User
 
Join Date: Apr 2004
Location: zxczxczxc
Posts: 52
How to backup DB and AP on one tape?

Hi,
Change the TAPEDEV parameter to the file you want to backup the DB. eg
TAPEDEV /software/newdbtar/backup2007. Also change the TAPEBLK size accordingly and do a ontape -s -L 0 at command prompt. This will backup your DB to the file you specified. Then you can take a tar of the filesystem.

bye.
__________________
zxczxczc
Reply With Quote
  #6 (permalink)  
Old 07-24-04, 01:03
bull_abraham bull_abraham is offline
Registered User
 
Join Date: Feb 2004
Posts: 32
There is a way to do this without overwriting, check with your sysadmin.
When you run ontape, the backup completes and then rewinds the tape which makes the tape viable for destruction if another backup( in your case the file system backup) is run. There is a way to instruct ontape not to rewind the tape after the backup is completed.

Hope you find that option.

-Abraham
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On