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 > Backup to Disk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-04, 07:06
tlohan tlohan is offline
Registered User
 
Join Date: Jun 2002
Location: Ireland
Posts: 12
Unhappy Backup to Disk

Hi,

I have Informix 9.3 installed on a Sun Server.

I had setup onbar to backup my database to disk (no tape device available) and this was due to be backed up by a Legato Backup of my file system.

However, ISM conflicts with Legato and the backup of the file system failed.

I am now looking into alternative methods to backup my database.

I read an article about using ontape but it mentions a script, infback.sh, that I cannot find on my system.

Can anyone recommend a good way that I can backup my database to disk and then use Legato to backup the file system.

Does anyone have the details of infback.sh and its other required scripts.

Thanks,

Tom
Reply With Quote
  #2 (permalink)  
Old 01-08-04, 08:35
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: Backup to Disk

Quote:
Originally posted by tlohan
Hi,

I have Informix 9.3 installed on a Sun Server.

I had setup onbar to backup my database to disk (no tape device available) and this was due to be backed up by a Legato Backup of my file system.

However, ISM conflicts with Legato and the backup of the file system failed.

I am now looking into alternative methods to backup my database.

I read an article about using ontape but it mentions a script, infback.sh, that I cannot find on my system.

Can anyone recommend a good way that I can backup my database to disk and then use Legato to backup the file system.

Does anyone have the details of infback.sh and its other required scripts.

Thanks,

Tom
Hi Tom,

To do back-up to disk I think that it is better to utilize ontape.
You must change in ONCONFIG, the parameter TAPEDEV=/path_of_file,
TAPESIZE=size of file-system - 10 %.
Then run ontape -s -L 0
I think that is more easy, to do back-up to disk, run ontape that onbar.

Now, another form and more secure, is to do dbexport, if possible.

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 01-08-04, 19:09
zzx806 zzx806 is offline
Registered User
 
Join Date: Dec 2003
Location: China,Fujian
Posts: 8
Re: Backup to Disk

if the database size more than 2G,can i still set
the parameter TAPESIZE=size of file-system - 10 %
in ONCONFIG file ?

Thanks!
Reply With Quote
  #4 (permalink)  
Old 01-09-04, 03:42
tlohan tlohan is offline
Registered User
 
Join Date: Jun 2002
Location: Ireland
Posts: 12
Re: Backup to Disk

Quote:
Originally posted by gurey
Hi Tom,

To do back-up to disk I think that it is better to utilize ontape.
You must change in ONCONFIG, the parameter TAPEDEV=/path_of_file,
TAPESIZE=size of file-system - 10 %.
Then run ontape -s -L 0
I think that is more easy, to do back-up to disk, run ontape that onbar.

Now, another form and more secure, is to do dbexport, if possible.

Gustavo.

Gustavo,

Thanks, ontape looks like the easiest option to use.
However, I'd like my backups to run every night and I'm
wondering if there is a way to automate ontape in 9.3.

Any ideas ?

Thanks,

Tom
Reply With Quote
  #5 (permalink)  
Old 01-09-04, 07:38
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: Backup to Disk

Quote:
Originally posted by tlohan
Gustavo,

Thanks, ontape looks like the easiest option to use.
However, I'd like my backups to run every night and I'm
wondering if there is a way to automate ontape in 9.3.

Any ideas ?

Thanks,

Tom
Hi Tom,

Yes, there is a way, please run from an script the following:

echo "\n" |ontape -s -L 0 |head -200

Gustavo.
Reply With Quote
  #6 (permalink)  
Old 02-12-04, 11:37
mbrogle mbrogle is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
Question echo "\n" |ontape -s -L 0 |head -200

Dear Gustavo,

can you tell me, if the command echo "\n" |ontape -s -L 0 |head -200 is a windows command or a unix-command?

We use the IDS9.40TC3 on Windows2000 Advanced Server.

I have the same problem with "Please mount tape1 ... and press return to continue"

Do you know the correct batch-command?

mbrogle
Reply With Quote
  #7 (permalink)  
Old 02-16-04, 02:02
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Re: echo "\n" |ontape -s -L 0 |head -200

Quote:
Originally posted by mbrogle
Dear Gustavo,

can you tell me, if the command echo "\n" |ontape -s -L 0 |head -200 is a windows command or a unix-command?

We use the IDS9.40TC3 on Windows2000 Advanced Server.

I have the same problem with "Please mount tape1 ... and press return to continue"

Do you know the correct batch-command?

mbrogle
Hi Mbrogle,

The above command is a unix command. To automate the same in Windows you will have to use Windows Schedule tasks.

Regards,

Lloyd
Reply With Quote
  #8 (permalink)  
Old 02-16-04, 05:03
mbrogle mbrogle is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
Thumbs up Solution for "Please mount tape1 ... and press return to continue"-Problem

You have to create a new textfile with a cr/lf in it (CRLF.TXT).
Then the command in the batch is

ontape -s -L 0 < [path\]CRLF.TXT

Please be pacient, the cursor doesn't jump into the next line, as if you do the command ontape -s -L 0 manually and give a return then.
This is o.k.!


Regards

Michael
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