I want to make a hot backup of my informix data to post on the local networks of the company.
example, the IP address of my server is 192.168.2.10 and I want to make a hot backup to another server that each IP address 192.168.2.12
its possible? what I can do ? i want using the command ONBAR (can you give me the syntax and a small script that allows me to do this operation?)
ServerA = Informix running
ServerB = Target to save backup
1) Share the disk on ServerB (with samba or nfs)
2) Mount the ServerB directory on ServerA
Let's suppose you mount in the directory: /RemoteBackup
(all this is OS knowledge, if you don't know how to do, please , search on internet , isn't hard to do)
3)Configure your ONCONFIG , the parameters TAPEDEV and LTAPEDEV :
Where the "-L 0" means Level 0 (full backup), if you want a incremental backup, you still have 1 and 2 levels :
ontape -s -L 1
ontape -s -L 2
But , remember, if use increment backup, to restore the level 2 , you will need the level 1 and 0 previous backuped.
The ontape always ask if the tape are mounted. If you want to automatize this process in a shell script use:
ontape -s -L 0 <<EOC
So, to create a full or incremental backup, that is all...
To create the logical logs backup you can use 2 commands;
The "-c" means "continuous" backup , where the ontape command not stop running still the user/operator press CTRL+C or the space where the backup are written become full..
The "-a" means "automatic" backup, where the ontape command backup only the not-backuped logical logs (you can check this with "onstat -l" ).
So, remember , the parameter on the ONCONFIG aren't dynamic , so every time you execute the ontape, the old file will be overwritten . This way , is high recommend you rename the fille after execute the ontape.
I don't detail to much, because this is the basic guideline and depend how your enviroment are configured and how you want your backup work...