Considering :
ServerA = Informix running
ServerB = Target to save backup
Basic steps.
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 :
Code:
TAPEDEV /RemoteBackup/ids_backup
LTAPEDEV /dev/null
WARNING: this way you don't have backup of any logical log, if you want to backup the logical log , you have some options what I explain at the end of this post.
4) create the backup file with informix user and set the right permission :
Code:
touch /RemoteBackup/ids_backup
chmod 660 /RemoteBackup/ids_backup
5) Execute the backup
Where the "-L 0" means Level 0 (full backup), if you want a incremental backup, you still have 1 and 2 levels :
Code:
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:
Code:
ontape -s -L 0 <<EOC
EOC
So, to create a full or incremental backup, that is all...
To create the logical logs backup you can use 2 commands;
Code:
ontape -a
ontape -c
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...
If need more information about ontape command , please read the manual:
IBM Informix Dynamic Server v10 Information Center
IBM Informix Dynamic Server v10 Information Center
IBM Informix Dynamic Server v10 Information Center
IBM Informix Dynamic Server v10 Information Center