first thanks:
I want backup database use "ontape -s -L 0" to backup informix database to
disk.
but, If i set TAPEDEV too small, it will prompt user "press Enter to
continue...", and wait for input, (read key)
if I set TAPEDEV too big, it will squander too many disk spaces.
I make a NFS filesystem and mount it to : /home/informix/backup/ <--vtape
file.
I want use "ontape" to backup my database, it create 1G files(rationality),
and when ontape prompt me change tape, I must copy vtape to a new file, just
like: vtape.1, and then press <enter> to continue.,and go on ......etc
Question:
User must be a normal unix user, and can input shell command,
I wan't do it though program or shell scripts or "crontab", user only need
click mouse from web, and wait for user input <enter> not need, shell script
will copy vtape file to vtape.$n......
hehe. Chinese user, and opretor can't do any unix command. !!!!!
use STDIO as TAPEDEV, I never do it, try it later....
> With v10 you can set TAPEDEV in your $ONCONFIG to STDIO or a disk file
> name
[quoted text clipped - 53 lines]
> Informix-list@iiug.org
> http://www.iiug.org/mailman/listinfo/informix-list
Art S. Kagel (Oninit) - 26 Feb 2008 15:05 GMT
First, setting TAPESIZE larger than you need will not waste disk. IDS
will not write out the full maximum size of the file to TAPESIZE in any
case, only the size actually needed rounded up to the next TAPEBLK
blocksize. However, if your OS can handle an archive file large enough
to hold all of your chunks and any physical log records written during
the archive period, then you can set TAPESIZE to zero (0) and ontape
will continue to write to the file until the filesystem fills up or the
OS returns a 'too large' error before prompting for a new tape file.
Art S. Kagel
Oninit
> first thanks:
>
[quoted text clipped - 93 lines]
>
>
===========================================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.oninit.com/home/disclaimer.php
===========================================================================================
TBP - 26 Feb 2008 20:41 GMT
Humm,
Loads of bits of information here :
1. I would strongly NOT recommend setting TAPEDEV to STDIO.
Try it ... set TAPEDEV to STDIO and ... run ontape -s -L 0! Be quick if
you want to restore it :S. Use ontape -s -L 0 -t STDIO
Sort of thing that will catch you out late at night on a 9600 baud
connection!
2. Version 11 (I know) has the ability to have TAPEDEV set to a
directory, sort of "set and forget" ... obviously beware of full
filesystems etc. etc.
3. There are LOADS of scripts out there which will do "what you ask",
but ...
> First, setting TAPESIZE larger than you need will not waste disk. IDS
> will not write out the full maximum size of the file to TAPESIZE in any
[quoted text clipped - 122 lines]
>
> ===========================================================================================