{"id":2069,"date":"2016-06-22T12:09:10","date_gmt":"2016-06-22T16:09:10","guid":{"rendered":"https:\/\/virtual-dba.com\/?p=1863"},"modified":"2023-03-24T08:05:27","modified_gmt":"2023-03-24T15:05:27","slug":"informix-ontape-backup-restore-using-compression","status":"publish","type":"post","link":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/","title":{"rendered":"Informix Ontape Backup\/Restore Using Compression"},"content":{"rendered":"<p>With the newer releases of the IBM Informix Dynamic Server engine, the capability to perform backups to the file system has been greatly improved. The TAPEDEV onconfig parameter can now be set to a single file, a directory, or the value STDIO for standard output. With the ability to write directly to the file systems now in place, the next question is often: what is the best method to compress the archives?<\/p>\n<p>The first option that comes to mind is just to compress the file when the backup has been completed. This is a perfectly acceptable method and it&#8217;s easy enough to set up a script that will do it for you, but isn&#8217;t it generally better to use fewer steps?<\/p>\n<p>The next question is: since we can write to STDIO, why don&#8217;t we just pass it to a compression program? Again, this method will work but there are some downsides to performing this process. While the backup can be performed in a single step, the restore can&#8217;t. The ontape restore is a two-pass process so when it tries to \u201crewind\u201d to the beginning of the file, the uncompress program will throw an error.<\/p>\n<p>What this means is that if you want to perform a restore, then you must uncompress the archive file prior to the restore. Also, if you are writing your archives to a directory, then compressing in this way will disrupt the naming system that the engine prefers to use.<\/p>\n<p>So, although these options are workable, there&#8217;s a better way. IBM has provided options that allow the engine itself to handle both the compression and decompression of the data as the archive runs. The parameters BACKUP_FILTER and RESTORE_FILTER can be set to enable the engine to handle the tasks while the archive process is being performed.<\/p>\n<p>The commands you need to run are slightly different depending on where you are planning to write your archives, whether to file, directory or STDIO.<\/p>\n<p>We&#8217;ll review five different archive options.<\/p>\n<h2>1) Ontape to file<\/h2>\n<p>The first method we&#8217;ll review is the standard ontape to a named file. When using this method, the TAPEDEV parameter is set to a specific file name and the BACKUP and RESTORE filters are not set. The target file for the archive must exist.<\/p>\n<h4><strong>For this example:<\/strong><\/h4>\n<p>TAPEDEV $INFORMIXDIR\/backups\/ontape.backup<br \/>\nBACKUP_FILTER<br \/>\nRESTORE_FILTER<\/p>\n<h4><strong>To perform the backup:<\/strong><\/h4>\n<p><code><strong>[informix@localhost backups]$ ontape -s -L 0<\/strong><\/code><\/p>\n<p>Please mount tape 1 on \/opt\/IBM\/informix\/backups\/ontape.backup and press Return to continue &#8230;<br \/>\n10 percent done.<br \/>\n100 percent done.<br \/>\nRead\/Write End Of Medium enabled: blocks = 1107<\/p>\n<p>Please label this tape as number 1 in the arc tape sequence.<br \/>\nThis tape contains the following logical logs:<\/p>\n<p>16<\/p>\n<p>Program over.<br \/>\n[informix@localhost backups]$ ls -ltr<br \/>\ntotal 35424<br \/>\n-rw-rw&#8212;-. 1 informix informix 36274176 Apr 20 08:45 ontape.backup<br \/>\n[informix@localhost backups]$ file ontape.backup<br \/>\nontape.backup: data<br \/>\n[informix@localhost backups]$<\/p>\n<h4><strong>To perform a restore:<\/strong><\/h4>\n<p><code><strong>[informix@localhost backups]$ ontape -r<\/strong><\/code><\/p>\n<p>Please mount tape 1 on \/opt\/IBM\/informix\/backups\/ontape.backup and press Return to continue &#8230;<\/p>\n<p>Archive Tape Information<\/p>\n<p>Tape type: Archive Backup Tape<br \/>\nOnline version: IBM Informix Dynamic Server Version 12.10.FC6AEE<br \/>\nArchive date: Wed Apr 20 08:45:34 2016<br \/>\nUser id: informix<br \/>\nTerminal id: \/dev\/pts\/0<br \/>\nArchive level: 0<br \/>\nTape device: \/opt\/IBM\/informix\/backups\/ontape.backup<br \/>\nTape blocksize (in k): 32<br \/>\nTape size (in k): 0<br \/>\nTape number in series: 1<\/p>\n<p>Spaces to restore:1 [rootdbs]<br \/>\n2 [plog]<br \/>\n3 [llog]<br \/>\n4 [datadbs1]<br \/>\n5 [datadbs2]<br \/>\n6 [datadbs3]<br \/>\n7 [data8dbs1]<br \/>\n8 [data8dbs2]<br \/>\n9 [data8dbs3]<br \/>\n10 [sbspace1]<\/p>\n<p>Archive Information<\/p>\n<p>IBM Informix Dynamic Server Copyright 2001, 2015 IBM Corporation<br \/>\nInitialization Time 03\/29\/2016 08:15:27<br \/>\nSystem Page Size 2048<br \/>\nVersion 28<br \/>\nIndex Page Logging OFF<br \/>\nArchive CheckPoint Time 04\/20\/2016 08:45:34<\/p>\n<p>Dbspaces<br \/>\nnumber flags fchunk nchunks flags owner name<br \/>\n1 1 1 1 N A informix rootdbs<br \/>\n2 1000001 2 1 N P A informix plog<br \/>\n3 1 3 1 N A informix llog<br \/>\n4 1 4 1 N A informix datadbs1<br \/>\n5 1 5 1 N A informix datadbs2<br \/>\n6 1 6 1 N A informix datadbs3<br \/>\n7 1 7 1 N A informix data8dbs1<br \/>\n8 1 8 1 N A informix data8dbs2<br \/>\n9 1 9 1 N A informix data8dbs3<br \/>\n10 2001 10 1 N T A informix tmpdbspace<br \/>\n11 8001 11 1 N S A informix sbspace1<br \/>\n12 a001 12 1 N U A informix tmpsbspace<\/p>\n<p>Chunks<br \/>\nchk\/dbs offset size free bpages flags pathname<br \/>\n1 1 0 78848 67832 PO&#8212; \/opt\/IBM\/informix\/storage\/rootdbs<br \/>\n2 2 0 32768 0 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_plog_p_1<br \/>\n3 3 0 32768 15 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_llog_p_1<br \/>\n4 4 0 32768 32715 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs1_p_1<br \/>\n5 5 0 32768 32715 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs2_p_1<br \/>\n6 6 0 32768 32715 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs3_p_1<br \/>\n7 7 0 32768 29652 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs1_p_1<br \/>\n8 8 0 32768 32556 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs2_p_1<br \/>\n9 9 0 32768 32556 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs3_p_1<br \/>\n10 10 0 32768 32332 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpdbspace_p_1<br \/>\n11 11 0 32768 8466 POS&#8211; \/opt\/IBM\/informix\/storage\/ol_informix1210_sbspace1_p_1<br \/>\n12 12 0 32768 8466 POS&#8211; \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpsbspace_p_1<\/p>\n<p>Continue restore? (y\/n)y<br \/>\nDo you want to back up the logs? (y\/n)n<br \/>\nWarning: Parameter&#8217;s user-configured value was adjusted. (DS_MAX_SCANS)<br \/>\nWarning: Parameter&#8217;s user-configured value was adjusted. (ONLIDX_MAXMEM)<\/p>\n<p>Read\/Write End Of Medium enabled: blocks = 1107<br \/>\nRestore a level 1 archive (y\/n) Restore a level 1 archive (y\/n) n<br \/>\nDo you want to restore log tapes? (y\/n)n<br \/>\n\/opt\/IBM\/informix\/bin\/onmode -sy<\/p>\n<p>Program over.<\/p>\n<p><strong>[informix@localhost backups]$ onmode -m<br \/>\n[informix@localhost backups]$ onstat &#8211;<br \/>\n<\/strong><\/p>\n<p>IBM Informix Dynamic Server Version 12.10.FC6AEE &#8212; On-Line &#8212; Up 00:00:28 &#8212; 219400 Kbytes<\/p>\n<p>This method is commonly used and the backups can be compressed\/decompressed as needed.<\/p>\n<h2>2) Ontape using FILTERs<\/h2>\n<p>Next we&#8217;ll look at using the FILTER parameter.<\/p>\n<h4><strong>For this example:<\/strong><\/h4>\n<p>TAPEDEV $INFORMIXDIR\/backups\/ontape.backup.compressed<br \/>\nBACKUP_FILTER \/usr\/bin\/gzip<br \/>\nRESTORE_FILTER \/usr\/bin\/gunzip<\/p>\n<h4><strong>To perform the backup:<\/strong><\/h4>\n<p><code><strong>[informix@localhost backups]$ ontape -s -L 0<\/strong><\/code><\/p>\n<p>Please mount tape 1 on \/opt\/IBM\/informix\/backups\/ontape.backup.compressed and press Return to continue &#8230;<br \/>\nUsing the backup and restore filter \/usr\/bin\/gzip.<br \/>\n10 percent done.<br \/>\n100 percent done.<br \/>\nRead\/Write End Of Medium enabled: blocks = 74<\/p>\n<p>Please label this tape as number 1 in the arc tape sequence.<br \/>\nThis tape contains the following logical logs:<\/p>\n<p>16<\/p>\n<p>Program over.<\/p>\n<h4><strong>To perform a restore:<\/strong><\/h4>\n<p><strong>[informix@localhost backups]$ ontape -r<br \/>\n<\/strong><\/p>\n<p>Please mount tape 1 on \/opt\/IBM\/informix\/backups\/ontape.backup.compressed and press Return to continue &#8230;<br \/>\nUsing the backup and restore filter \/usr\/bin\/gunzip.<\/p>\n<p>Archive Tape Information<\/p>\n<p>Tape type: Archive Backup Tape<br \/>\nOnline version: IBM Informix Dynamic Server Version 12.10.FC6AEE<br \/>\nArchive date: Wed Apr 20 09:14:14 2016<br \/>\nUser id: informix<br \/>\nTerminal id: \/dev\/pts\/0<br \/>\nArchive level: 0<br \/>\nTape device: \/opt\/IBM\/informix\/backups\/ontape.backup.compressed<br \/>\nTape blocksize (in k): 32<br \/>\nTape size (in k): 0<br \/>\nTape number in series: 1<br \/>\nBackup filter: \/usr\/bin\/gzip<\/p>\n<p>Spaces to restore:1 [rootdbs]<br \/>\n2 [plog]<br \/>\n3 [llog]<br \/>\n4 [datadbs1]<br \/>\n5 [datadbs2]<br \/>\n6 [datadbs3]<br \/>\n7 [data8dbs1]<br \/>\n8 [data8dbs2]<br \/>\n9 [data8dbs3]<br \/>\n10 [sbspace1]<\/p>\n<p>Archive Information<\/p>\n<p>IBM Informix Dynamic Server Copyright 2001, 2015 IBM Corporation<br \/>\nInitialization Time 03\/29\/2016 08:15:27<br \/>\nSystem Page Size 2048<br \/>\nVersion 28<br \/>\nIndex Page Logging OFF<br \/>\nArchive CheckPoint Time 04\/20\/2016 09:14:13<\/p>\n<p>Dbspaces<br \/>\nnumber flags fchunk nchunks flags owner name<br \/>\n1 1 1 1 N A informix rootdbs<br \/>\n2 1000001 2 1 N P A informix plog<br \/>\n3 1 3 1 N A informix llog<br \/>\n4 1 4 1 N A informix datadbs1<br \/>\n5 1 5 1 N A informix datadbs2<br \/>\n6 1 6 1 N A informix datadbs3<br \/>\n7 1 7 1 N A informix data8dbs1<br \/>\n8 1 8 1 N A informix data8dbs2<br \/>\n9 1 9 1 N A informix data8dbs3<br \/>\n10 2001 10 1 N T A informix tmpdbspace<br \/>\n11 8001 11 1 N S A informix sbspace1<br \/>\n12 a001 12 1 N U A informix tmpsbspace<\/p>\n<p>Chunks<br \/>\nchk\/dbs offset size free bpages flags pathname<br \/>\n1 1 0 78848 67824 PO&#8212; \/opt\/IBM\/informix\/storage\/rootdbs<br \/>\n2 2 0 32768 0 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_plog_p_1<br \/>\n3 3 0 32768 15 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_llog_p_1<br \/>\n4 4 0 32768 32715 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs1_p_1<br \/>\n5 5 0 32768 32715 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs2_p_1<br \/>\n6 6 0 32768 32715 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs3_p_1<br \/>\n7 7 0 32768 29652 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs1_p_1<br \/>\n8 8 0 32768 32556 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs2_p_1<br \/>\n9 9 0 32768 32556 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs3_p_1<br \/>\n10 10 0 32768 32332 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpdbspace_p_1<br \/>\n11 11 0 32768 8466 POS&#8211; \/opt\/IBM\/informix\/storage\/ol_informix1210_sbspace1_p_1<br \/>\n12 12 0 32768 8466 POS&#8211; \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpsbspace_p_1<\/p>\n<p>Continue restore? (y\/n)y<br \/>\nDo you want to back up the logs? (y\/n)n<br \/>\nUsing the backup and restore filter \/usr\/bin\/gunzip.<br \/>\nWarning: Parameter&#8217;s user-configured value was adjusted. (DS_MAX_SCANS)<br \/>\nWarning: Parameter&#8217;s user-configured value was adjusted. (ONLIDX_MAXMEM)<br \/>\nRead\/Write End Of Medium enabled: blocks = 74<br \/>\nRestore a level 1 archive (y\/n) n<br \/>\nDo you want to restore log tapes? (y\/n)n<br \/>\n\/opt\/IBM\/informix\/bin\/onmode -sy<\/p>\n<p>Program over.<\/p>\n<p><strong><br \/>\n[informix@localhost backups]$ onmode -m<br \/>\n[informix@localhost backups]$ onstat &#8211;<br \/>\n<\/strong><\/p>\n<p>IBM Informix Dynamic Server Version 12.10.FC6AEE &#8212; On-Line &#8212; Up 00:00:28 &#8212; 219400 Kbytes<\/p>\n<p>You&#8217;ll notice the only difference between this and the previous backup\/restore is the line noting which tool is being used to perform the compress\/decompress portion of the process.<\/p>\n<h2>3) Ontape using STDIO<\/h2>\n<p>The next method that we&#8217;ll examine is using STDIO to pass the archive to a compression program. For this example, TAPEDEV needs to be set to STDIO or overridden by the ontape -t flag and the FILTER parameters should not be set.<\/p>\n<h4><strong>For this example:<\/strong><\/h4>\n<p>TAPEDEV STDIO<br \/>\nBACKUP_FILTER<br \/>\nRESTORE_FILTER<\/p>\n<h4><strong>To perform the backup:<\/strong><\/h4>\n<p><code><strong>[informix@localhost backups]$ ontape -s -L 0 -t STDIO | gzip &gt; ontape.compressed.gz<br \/>\n[informix@localhost backups]$ ls -ltr<\/strong><br \/>\ntotal 37708<br \/>\n-rw-rw----. 1 informix informix 36274176 Apr 20 08:45 ontape.backup<br \/>\n-rw-rw-r--. 1 informix informix 2336216 Apr 20 09:02 ontape.compressed.gz<br \/>\n[informix@localhost backups]$<\/code><\/p>\n<h4><strong>To perform a restore:<\/strong><\/h4>\n<p>Unfortunately, this method takes two steps to perform the restore.<\/p>\n<p><code><strong>[informix@localhost backups]$ onmode -ky<br \/>\n[informix@localhost backups]$ gunzip ontape.compressed.gz | ontape -r -t STDIO<\/strong><br \/>\nPhysical restore failed - function read archive backup failed code 1 errno 0<br \/>\n<strong><br \/>\n[informix@localhost backups]$ gunzip ontape.compressed.gz<br \/>\n[informix@localhost backups]$ cat ontape.compressed | ontape -r -t STDIO<br \/>\n[informix@localhost backups]$ onmode -m<br \/>\n[informix@localhost backups]$ onstat -<br \/>\n<\/strong><\/code><\/p>\n<p>IBM Informix Dynamic Server Version 12.10.FC6AEE &#8212; On-Line &#8212; Up 00:00:23 &#8212; 219400 Kbytes<\/p>\n<h2>4) Ontape using a directory without filters<\/h2>\n<p>The preferred method for performing backups is to use a directory. This allows the engine to maintain the filenames which in turns makes it easier for you to determine the date and level of the archives.<\/p>\n<h4><strong>For this example, we&#8217;ll set the TAPEDEV to a directory and leave the FILTERS unset.:<\/strong><\/h4>\n<p>TAPEDEV $INFORMIXDIR\/backups<br \/>\nBACKUP_FILTER<br \/>\nRESTORE_FILTER<\/p>\n<h4><strong>To perform the backup:<\/strong><\/h4>\n<p><code><strong>[informix@localhost backups]$ ontape -s -L 0<\/strong><br \/>\n10 percent done.<br \/>\n100 percent done.<br \/>\nFile created: \/opt\/IBM\/informix\/backups\/localhost.localdomain_0_L0<\/code><\/p>\n<p>Please label this tape as number 1 in the arc tape sequence.<br \/>\nThis tape contains the following logical logs:<\/p>\n<p>16<\/p>\n<p>Program over.<\/p>\n<h4><strong>To perform a restore:<\/strong><\/h4>\n<p><strong>[informix@localhost backups]$ ontape -r<\/strong><br \/>\nRestore will use level 0 archive file \/opt\/IBM\/informix\/backups\/localhost.localdomain_0_L0. Press Return to continue &#8230;<\/p>\n<p>Archive Tape Information<\/p>\n<p>Tape type: Archive Backup Tape<br \/>\nOnline version: IBM Informix Dynamic Server Version 12.10.FC6AEE<br \/>\nArchive date: Wed Apr 20 09:20:26 2016<br \/>\nUser id: informix<br \/>\nTerminal id: \/dev\/pts\/0<br \/>\nArchive level: 0<br \/>\nTape device: \/opt\/IBM\/informix\/backups\/<br \/>\nTape blocksize (in k): 32<br \/>\nTape size (in k): system defined for directory<br \/>\nTape number in series: 1<\/p>\n<p>Spaces to restore:1 [rootdbs]<br \/>\n2 [plog]<br \/>\n3 [llog]<br \/>\n4 [datadbs1]<br \/>\n5 [datadbs2]<br \/>\n6 [datadbs3]<br \/>\n7 [data8dbs1]<br \/>\n8 [data8dbs2]<br \/>\n9 [data8dbs3]<br \/>\n10 [sbspace1]<\/p>\n<p>Archive Information<\/p>\n<p>IBM Informix Dynamic Server Copyright 2001, 2015 IBM Corporation<br \/>\nInitialization Time 03\/29\/2016 08:15:27<br \/>\nSystem Page Size 2048<br \/>\nVersion 28<br \/>\nIndex Page Logging OFF<br \/>\nArchive CheckPoint Time 04\/20\/2016 09:20:26<\/p>\n<p>Dbspaces<br \/>\nnumber flags fchunk nchunks flags owner name<br \/>\n1 1 1 1 N A informix rootdbs<br \/>\n2 1000001 2 1 N P A informix plog<br \/>\n3 1 3 1 N A informix llog<br \/>\n4 1 4 1 N A informix datadbs1<br \/>\n5 1 5 1 N A informix datadbs2<br \/>\n6 1 6 1 N A informix datadbs3<br \/>\n7 1 7 1 N A informix data8dbs1<br \/>\n8 1 8 1 N A informix data8dbs2<br \/>\n9 1 9 1 N A informix data8dbs3<br \/>\n10 2001 10 1 N T A informix tmpdbspace<br \/>\n11 8001 11 1 N S A informix sbspace1<br \/>\n12 a001 12 1 N U A informix tmpsbspace<\/p>\n<p>Chunks<br \/>\nchk\/dbs offset size free bpages flags pathname<br \/>\n1 1 0 78848 67808 PO&#8212; \/opt\/IBM\/informix\/storage\/rootdbs<br \/>\n2 2 0 32768 0 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_plog_p_1<br \/>\n3 3 0 32768 15 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_llog_p_1<br \/>\n4 4 0 32768 32715 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs1_p_1<br \/>\n5 5 0 32768 32715 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs2_p_1<br \/>\n6 6 0 32768 32715 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs3_p_1<br \/>\n7 7 0 32768 29652 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs1_p_1<br \/>\n8 8 0 32768 32556 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs2_p_1<br \/>\n9 9 0 32768 32556 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs3_p_1<br \/>\n10 10 0 32768 32332 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpdbspace_p_1<br \/>\n11 11 0 32768 8466 POS&#8211; \/opt\/IBM\/informix\/storage\/ol_informix1210_sbspace1_p_1<br \/>\n12 12 0 32768 8466 POS&#8211; \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpsbspace_p_1<\/p>\n<p>Continue restore? (y\/n)y<br \/>\nDo you want to back up the logs? (y\/n)n<br \/>\nWarning: Parameter&#8217;s user-configured value was adjusted. (DS_MAX_SCANS)<br \/>\nWarning: Parameter&#8217;s user-configured value was adjusted. (ONLIDX_MAXMEM)<br \/>\nRestore a level 1 archive (y\/n) n<br \/>\nDo you want to restore log tapes? (y\/n)n<br \/>\n\/opt\/IBM\/informix\/bin\/onmode -sy<\/p>\n<p>Program over.<\/p>\n<p><strong><br \/>\n[informix@localhost backups]$ onmode -m<br \/>\non[informix@localhost backups]$ onstat &#8211;<br \/>\n<\/strong><\/p>\n<p>IBM Informix Dynamic Server Version 12.10.FC6AEE &#8212; On-Line &#8212; Up 00:00:32 &#8212; 219400 Kbytes<\/p>\n<h2>5) Ontape to a directory using filters<\/h2>\n<p>Here&#8217;s how it works using the FILTER parameters. This allows Informix to manage the file names while enabling compression.<\/p>\n<h4><strong>For this example:<\/strong><\/h4>\n<p>TAPEDEV $INFORMIXDIR\/backups<br \/>\nBACKUP_FILTER \/usr\/bin\/gzip<br \/>\nRESTORE_FILTER \/usr\/bin\/gunzip<\/p>\n<h4><strong>To perform the backup:<\/strong><\/h4>\n<p><code><strong>[informix@localhost backups]$ ontape -s -L 0<br \/>\n<\/strong><\/code><\/p>\n<p>Using the backup and restore filter \/usr\/bin\/gzip.<br \/>\n10 percent done.<br \/>\n100 percent done.<br \/>\nFile created: \/opt\/IBM\/informix\/backups\/localhost.localdomain_0_L0<\/p>\n<p>Please label this tape as number 1 in the arc tape sequence.<br \/>\nThis tape contains the following logical logs:<\/p>\n<p>16<\/p>\n<p>Program over.<\/p>\n<h4><strong>To perform a restore:<\/strong><\/h4>\n<p><code><strong>[informix@localhost backups]$ ontape -r<br \/>\n<\/strong><\/code><\/p>\n<p>Restore will use level 0 archive file \/opt\/IBM\/informix\/backups\/localhost.localdomain_0_L0. Press Return to continue &#8230;<\/p>\n<p>Using the backup and restore filter \/usr\/bin\/gunzip.<\/p>\n<p>Archive Tape Information<\/p>\n<p>Tape type: Archive Backup Tape<br \/>\nOnline version: IBM Informix Dynamic Server Version 12.10.FC6AEE<br \/>\nArchive date: Wed Apr 20 09:43:36 2016<br \/>\nUser id: informix<br \/>\nTerminal id: \/dev\/pts\/0<br \/>\nArchive level: 0<br \/>\nTape device: \/opt\/IBM\/informix\/backups\/<br \/>\nTape blocksize (in k): 32<br \/>\nTape size (in k): system defined for directory<br \/>\nTape number in series: 1<br \/>\nBackup filter: \/usr\/bin\/gzip<\/p>\n<p>Spaces to restore:1 [rootdbs]<br \/>\n2 [plog]<br \/>\n3 [llog]<br \/>\n4 [datadbs1]<br \/>\n5 [datadbs2]<br \/>\n6 [datadbs3]<br \/>\n7 [data8dbs1]<br \/>\n8 [data8dbs2]<br \/>\n9 [data8dbs3]<br \/>\n10 [sbspace1]<\/p>\n<p>Archive Information<\/p>\n<p>IBM Informix Dynamic Server Copyright 2001, 2015 IBM Corporation<br \/>\nInitialization Time 03\/29\/2016 08:15:27<br \/>\nSystem Page Size 2048<br \/>\nVersion 28<br \/>\nIndex Page Logging OFF<br \/>\nArchive CheckPoint Time 04\/20\/2016 09:43:35<\/p>\n<p>Dbspaces<br \/>\nnumber flags fchunk nchunks flags owner name<br \/>\n1 1 1 1 N A informix rootdbs<br \/>\n2 1000001 2 1 N P A informix plog<br \/>\n3 1 3 1 N A informix llog<br \/>\n4 1 4 1 N A informix datadbs1<br \/>\n5 1 5 1 N A informix datadbs2<br \/>\n6 1 6 1 N A informix datadbs3<br \/>\n7 1 7 1 N A informix data8dbs1<br \/>\n8 1 8 1 N A informix data8dbs2<br \/>\n9 1 9 1 N A informix data8dbs3<br \/>\n10 2001 10 1 N T A informix tmpdbspace<br \/>\n11 8001 11 1 N S A informix sbspace1<br \/>\n12 a001 12 1 N U A informix tmpsbspace<\/p>\n<p>Chunks<br \/>\nchk\/dbs offset size free bpages flags pathname<br \/>\n1 1 0 78848 67808 PO&#8212; \/opt\/IBM\/informix\/storage\/rootdbs<br \/>\n2 2 0 32768 0 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_plog_p_1<br \/>\n3 3 0 32768 15 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_llog_p_1<br \/>\n4 4 0 32768 32715 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs1_p_1<br \/>\n5 5 0 32768 32715 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs2_p_1<br \/>\n6 6 0 32768 32715 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs3_p_1<br \/>\n7 7 0 32768 29652 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs1_p_1<br \/>\n8 8 0 32768 32556 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs2_p_1<br \/>\n9 9 0 32768 32556 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs3_p_1<br \/>\n10 10 0 32768 32332 PO&#8211;E \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpdbspace_p_1<br \/>\n11 11 0 32768 8466 POS&#8211; \/opt\/IBM\/informix\/storage\/ol_informix1210_sbspace1_p_1<br \/>\n12 12 0 32768 8466 POS&#8211; \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpsbspace_p_1<\/p>\n<p>Continue restore? (y\/n)y<br \/>\nDo you want to back up the logs? (y\/n)n<br \/>\nUsing the backup and restore filter \/usr\/bin\/gunzip.<br \/>\nWarning: Parameter&#8217;s user-configured value was adjusted. (DS_MAX_SCANS)<br \/>\nWarning: Parameter&#8217;s user-configured value was adjusted. (ONLIDX_MAXMEM)<br \/>\nRestore a level 1 archive (y\/n) n<br \/>\nDo you want to restore log tapes? (y\/n)n<br \/>\n\/opt\/IBM\/informix\/bin\/onmode -sy<\/p>\n<p>Program over.<\/p>\n<p><strong><br \/>\n[informix@localhost backups]$ onmode -m<br \/>\n[informix@localhost backups]$ onstat &#8211;<br \/>\n<\/strong><\/p>\n<p>IBM Informix Dynamic Server Version 12.10.FC6AEE &#8212; On-Line &#8212; Up 00:00:38 &#8212; 219400 Kbytes<br \/>\nAgain, you&#8217;ll see the only difference is the line that notes the compression\/decompression method.<\/p>\n<h2>Archive output<\/h2>\n<p>Finally, we&#8217;ll take a look at the files that were generated from the different backup methods.<\/p>\n<h4><strong>Standard ontape:<\/strong><\/h4>\n<p><code>[informix@localhost backups]$ ls -ltr<br \/>\ntotal 78388<br \/>\n-rw-rw----. 1 informix informix 36274176 Apr 20 08:45 ontape.backup<\/code><\/p>\n<h4><strong>Standard ontape with the BACKUP_FILTER:<\/strong><\/h4>\n<p><code>-rw-rw-r--. 1 informix informix 2344058 Apr 20 09:07 ontape.compressed.gz<\/code><\/p>\n<h4><strong>Using STDIO piped through a compress command:<\/strong><\/h4>\n<p><code>-rw-rw----. 1 informix informix 2424832 Apr 20 09:14 ontape.backup.compressed<\/code><\/p>\n<h4><strong>Standard ontape to a directory:<\/strong><\/h4>\n<p><code>-rw-rw----. 1 informix informix 36765696 Apr 20 09:20 localhost.localdomain_0_20160420_092026_L0<\/code><\/p>\n<h4><strong>Standard ontape to a directory with the BACKUP_FILTER:<\/strong><\/h4>\n<p><code>-rw-rw----. 1 informix informix 2457600 Apr 20 09:43 localhost.localdomain_0_L0<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the newer releases of the IBM Informix Dynamic Server engine, the capability to perform backups to the file system has been greatly improved. The TAPEDEV onconfig parameter can now be set to a single file, a directory, or the value STDIO for standard output. With the ability to write directly to the file systems [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":30193,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"<p>With the newer releases of the IBM Informix Dynamic Server engine, the capability to perform backups to the file system has been greatly improved. The TAPEDEV onconfig parameter can now be set to a single file, a directory, or the value STDIO for standard output. With the ability to write directly to the file systems now in place, the next question is often: what is the best method to compress the archives?<\/p><p>The first option that comes to mind is just to compress the file when the backup has been completed. This is a perfectly acceptable method and it's easy enough to set up a script that will do it for you, but isn't it generally better to use fewer steps?<\/p><p>The next question is: since we can write to STDIO, why don't we just pass it to a compression program? Again, this method will work but there are some downsides to performing this process. While the backup can be performed in a single step, the restore can't. The ontape restore is a two-pass process so when it tries to \u201crewind\u201d to the beginning of the file, the uncompress program will throw an error.<\/p><p>What this means is that if you want to perform a restore, then you must uncompress the archive file prior to the restore. Also, if you are writing your archives to a directory, then compressing in this way will disrupt the naming system that the engine prefers to use.<\/p><p>So, although these options are workable, there's a better way. IBM has provided options that allow the engine itself to handle both the compression and decompression of the data as the archive runs. The parameters BACKUP_FILTER and RESTORE_FILTER can be set to enable the engine to handle the tasks while the archive process is being performed.<\/p><p>The commands you need to run are slightly different depending on where you are planning to write your archives, whether to file, directory or STDIO.<\/p><p>We'll review five different archive options.<\/p><h2>1) Ontape to file<\/h2><p>The first method we'll review is the standard ontape to a named file. When using this method, the TAPEDEV parameter is set to a specific file name and the BACKUP and RESTORE filters are not set. The target file for the archive must exist.<\/p><h4><strong>For this example:<\/strong><\/h4><p>TAPEDEV $INFORMIXDIR\/backups\/ontape.backup<br \/> BACKUP_FILTER<br \/> RESTORE_FILTER<\/p><h4><strong>To perform the backup:<\/strong><\/h4><p><code><strong>[informix@localhost backups]$ ontape -s -L 0<\/strong><\/code><\/p><p>Please mount tape 1 on \/opt\/IBM\/informix\/backups\/ontape.backup and press Return to continue ...<br \/> 10 percent done.<br \/> 100 percent done.<br \/> Read\/Write End Of Medium enabled: blocks = 1107<\/p><p>Please label this tape as number 1 in the arc tape sequence.<br \/> This tape contains the following logical logs:<\/p><p>16<\/p><p>Program over.<br \/> [informix@localhost backups]$ ls -ltr<br \/> total 35424<br \/> -rw-rw----. 1 informix informix 36274176 Apr 20 08:45 ontape.backup<br \/> [informix@localhost backups]$ file ontape.backup<br \/> ontape.backup: data<br \/> [informix@localhost backups]$<\/p><h4><strong>To perform a restore:<\/strong><\/h4><p><code><strong>[informix@localhost backups]$ ontape -r<\/strong><\/code><\/p><p>Please mount tape 1 on \/opt\/IBM\/informix\/backups\/ontape.backup and press Return to continue ...<\/p><p>Archive Tape Information<\/p><p>Tape type: Archive Backup Tape<br \/> Online version: IBM Informix Dynamic Server Version 12.10.FC6AEE<br \/> Archive date: Wed Apr 20 08:45:34 2016<br \/> User id: informix<br \/> Terminal id: \/dev\/pts\/0<br \/> Archive level: 0<br \/> Tape device: \/opt\/IBM\/informix\/backups\/ontape.backup<br \/> Tape blocksize (in k): 32<br \/> Tape size (in k): 0<br \/> Tape number in series: 1<\/p><p>Spaces to restore:1 [rootdbs]<br \/> 2 [plog]<br \/> 3 [llog]<br \/> 4 [datadbs1]<br \/> 5 [datadbs2]<br \/> 6 [datadbs3]<br \/> 7 [data8dbs1]<br \/> 8 [data8dbs2]<br \/> 9 [data8dbs3]<br \/> 10 [sbspace1]<\/p><p>Archive Information<\/p><p>IBM Informix Dynamic Server Copyright 2001, 2015 IBM Corporation<br \/> Initialization Time 03\/29\/2016 08:15:27<br \/> System Page Size 2048<br \/> Version 28<br \/> Index Page Logging OFF<br \/> Archive CheckPoint Time 04\/20\/2016 08:45:34<\/p><p>Dbspaces<br \/> number flags fchunk nchunks flags owner name<br \/> 1 1 1 1 N A informix rootdbs<br \/> 2 1000001 2 1 N P A informix plog<br \/> 3 1 3 1 N A informix llog<br \/> 4 1 4 1 N A informix datadbs1<br \/> 5 1 5 1 N A informix datadbs2<br \/> 6 1 6 1 N A informix datadbs3<br \/> 7 1 7 1 N A informix data8dbs1<br \/> 8 1 8 1 N A informix data8dbs2<br \/> 9 1 9 1 N A informix data8dbs3<br \/> 10 2001 10 1 N T A informix tmpdbspace<br \/> 11 8001 11 1 N S A informix sbspace1<br \/> 12 a001 12 1 N U A informix tmpsbspace<\/p><p>Chunks<br \/> chk\/dbs offset size free bpages flags pathname<br \/> 1 1 0 78848 67832 PO--- \/opt\/IBM\/informix\/storage\/rootdbs<br \/> 2 2 0 32768 0 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_plog_p_1<br \/> 3 3 0 32768 15 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_llog_p_1<br \/> 4 4 0 32768 32715 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs1_p_1<br \/> 5 5 0 32768 32715 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs2_p_1<br \/> 6 6 0 32768 32715 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs3_p_1<br \/> 7 7 0 32768 29652 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs1_p_1<br \/> 8 8 0 32768 32556 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs2_p_1<br \/> 9 9 0 32768 32556 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs3_p_1<br \/> 10 10 0 32768 32332 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpdbspace_p_1<br \/> 11 11 0 32768 8466 POS-- \/opt\/IBM\/informix\/storage\/ol_informix1210_sbspace1_p_1<br \/> 12 12 0 32768 8466 POS-- \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpsbspace_p_1<\/p><p>Continue restore? (y\/n)y<br \/> Do you want to back up the logs? (y\/n)n<br \/> Warning: Parameter's user-configured value was adjusted. (DS_MAX_SCANS)<br \/> Warning: Parameter's user-configured value was adjusted. (ONLIDX_MAXMEM)<\/p><p>Read\/Write End Of Medium enabled: blocks = 1107<br \/> Restore a level 1 archive (y\/n) Restore a level 1 archive (y\/n) n<br \/> Do you want to restore log tapes? (y\/n)n<br \/> \/opt\/IBM\/informix\/bin\/onmode -sy<\/p><p>Program over.<\/p><p><strong>[informix@localhost backups]$ onmode -m<br \/> [informix@localhost backups]$ onstat -<br \/> <\/strong><\/p><p>IBM Informix Dynamic Server Version 12.10.FC6AEE -- On-Line -- Up 00:00:28 -- 219400 Kbytes<\/p><p>This method is commonly used and the backups can be compressed\/decompressed as needed.<\/p><h2>2) Ontape using FILTERs<\/h2><p>Next we'll look at using the FILTER parameter.<\/p><h4><strong>For this example:<\/strong><\/h4><p>TAPEDEV $INFORMIXDIR\/backups\/ontape.backup.compressed<br \/> BACKUP_FILTER \/usr\/bin\/gzip<br \/> RESTORE_FILTER \/usr\/bin\/gunzip<\/p><h4><strong>To perform the backup:<\/strong><\/h4><p><code><strong>[informix@localhost backups]$ ontape -s -L 0<\/strong><\/code><\/p><p>Please mount tape 1 on \/opt\/IBM\/informix\/backups\/ontape.backup.compressed and press Return to continue ...<br \/> Using the backup and restore filter \/usr\/bin\/gzip.<br \/> 10 percent done.<br \/> 100 percent done.<br \/> Read\/Write End Of Medium enabled: blocks = 74<\/p><p>Please label this tape as number 1 in the arc tape sequence.<br \/> This tape contains the following logical logs:<\/p><p>16<\/p><p>Program over.<\/p><h4><strong>To perform a restore:<\/strong><\/h4><p><strong>[informix@localhost backups]$ ontape -r<br \/> <\/strong><\/p><p>Please mount tape 1 on \/opt\/IBM\/informix\/backups\/ontape.backup.compressed and press Return to continue ...<br \/> Using the backup and restore filter \/usr\/bin\/gunzip.<\/p><p>Archive Tape Information<\/p><p>Tape type: Archive Backup Tape<br \/> Online version: IBM Informix Dynamic Server Version 12.10.FC6AEE<br \/> Archive date: Wed Apr 20 09:14:14 2016<br \/> User id: informix<br \/> Terminal id: \/dev\/pts\/0<br \/> Archive level: 0<br \/> Tape device: \/opt\/IBM\/informix\/backups\/ontape.backup.compressed<br \/> Tape blocksize (in k): 32<br \/> Tape size (in k): 0<br \/> Tape number in series: 1<br \/> Backup filter: \/usr\/bin\/gzip<\/p><p>Spaces to restore:1 [rootdbs]<br \/> 2 [plog]<br \/> 3 [llog]<br \/> 4 [datadbs1]<br \/> 5 [datadbs2]<br \/> 6 [datadbs3]<br \/> 7 [data8dbs1]<br \/> 8 [data8dbs2]<br \/> 9 [data8dbs3]<br \/> 10 [sbspace1]<\/p><p>Archive Information<\/p><p>IBM Informix Dynamic Server Copyright 2001, 2015 IBM Corporation<br \/> Initialization Time 03\/29\/2016 08:15:27<br \/> System Page Size 2048<br \/> Version 28<br \/> Index Page Logging OFF<br \/> Archive CheckPoint Time 04\/20\/2016 09:14:13<\/p><p>Dbspaces<br \/> number flags fchunk nchunks flags owner name<br \/> 1 1 1 1 N A informix rootdbs<br \/> 2 1000001 2 1 N P A informix plog<br \/> 3 1 3 1 N A informix llog<br \/> 4 1 4 1 N A informix datadbs1<br \/> 5 1 5 1 N A informix datadbs2<br \/> 6 1 6 1 N A informix datadbs3<br \/> 7 1 7 1 N A informix data8dbs1<br \/> 8 1 8 1 N A informix data8dbs2<br \/> 9 1 9 1 N A informix data8dbs3<br \/> 10 2001 10 1 N T A informix tmpdbspace<br \/> 11 8001 11 1 N S A informix sbspace1<br \/> 12 a001 12 1 N U A informix tmpsbspace<\/p><p>Chunks<br \/> chk\/dbs offset size free bpages flags pathname<br \/> 1 1 0 78848 67824 PO--- \/opt\/IBM\/informix\/storage\/rootdbs<br \/> 2 2 0 32768 0 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_plog_p_1<br \/> 3 3 0 32768 15 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_llog_p_1<br \/> 4 4 0 32768 32715 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs1_p_1<br \/> 5 5 0 32768 32715 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs2_p_1<br \/> 6 6 0 32768 32715 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs3_p_1<br \/> 7 7 0 32768 29652 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs1_p_1<br \/> 8 8 0 32768 32556 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs2_p_1<br \/> 9 9 0 32768 32556 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs3_p_1<br \/> 10 10 0 32768 32332 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpdbspace_p_1<br \/> 11 11 0 32768 8466 POS-- \/opt\/IBM\/informix\/storage\/ol_informix1210_sbspace1_p_1<br \/> 12 12 0 32768 8466 POS-- \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpsbspace_p_1<\/p><p>Continue restore? (y\/n)y<br \/> Do you want to back up the logs? (y\/n)n<br \/> Using the backup and restore filter \/usr\/bin\/gunzip.<br \/> Warning: Parameter's user-configured value was adjusted. (DS_MAX_SCANS)<br \/> Warning: Parameter's user-configured value was adjusted. (ONLIDX_MAXMEM)<br \/> Read\/Write End Of Medium enabled: blocks = 74<br \/> Restore a level 1 archive (y\/n) n<br \/> Do you want to restore log tapes? (y\/n)n<br \/> \/opt\/IBM\/informix\/bin\/onmode -sy<\/p><p>Program over.<\/p><p><strong><br \/> [informix@localhost backups]$ onmode -m<br \/> [informix@localhost backups]$ onstat -<br \/> <\/strong><\/p><p>IBM Informix Dynamic Server Version 12.10.FC6AEE -- On-Line -- Up 00:00:28 -- 219400 Kbytes<\/p><p>You'll notice the only difference between this and the previous backup\/restore is the line noting which tool is being used to perform the compress\/decompress portion of the process.<\/p><h2>3) Ontape using STDIO<\/h2><p>The next method that we'll examine is using STDIO to pass the archive to a compression program. For this example, TAPEDEV needs to be set to STDIO or overridden by the ontape -t flag and the FILTER parameters should not be set.<\/p><h4><strong>For this example:<\/strong><\/h4><p>TAPEDEV STDIO<br \/> BACKUP_FILTER<br \/> RESTORE_FILTER<\/p><h4><strong>To perform the backup:<\/strong><\/h4><p><code><strong>[informix@localhost backups]$ ontape -s -L 0 -t STDIO | gzip > ontape.compressed.gz<br \/> [informix@localhost backups]$ ls -ltr<\/strong><br \/> total 37708<br \/> -rw-rw----. 1 informix informix 36274176 Apr 20 08:45 ontape.backup<br \/> -rw-rw-r--. 1 informix informix 2336216 Apr 20 09:02 ontape.compressed.gz<br \/> [informix@localhost backups]$<\/code><\/p><h4><strong>To perform a restore:<\/strong><\/h4><p>Unfortunately, this method takes two steps to perform the restore.<\/p><p><code><strong>[informix@localhost backups]$ onmode -ky<br \/> [informix@localhost backups]$ gunzip ontape.compressed.gz | ontape -r -t STDIO<\/strong><br \/> Physical restore failed - function read archive backup failed code 1 errno 0<br \/> <strong><br \/> [informix@localhost backups]$ gunzip ontape.compressed.gz<br \/> [informix@localhost backups]$ cat ontape.compressed | ontape -r -t STDIO<br \/> [informix@localhost backups]$ onmode -m<br \/> [informix@localhost backups]$ onstat -<br \/> <\/strong><\/code><\/p><p>IBM Informix Dynamic Server Version 12.10.FC6AEE -- On-Line -- Up 00:00:23 -- 219400 Kbytes<\/p><p>\u00a0<\/p><h2>4) Ontape using a directory without filters<\/h2><p>The preferred method for performing backups is to use a directory. This allows the engine to maintain the filenames which in turns makes it easier for you to determine the date and level of the archives.<\/p><h4><strong>For this example, we'll set the TAPEDEV to a directory and leave the FILTERS unset.:<\/strong><\/h4><p>TAPEDEV $INFORMIXDIR\/backups<br \/> BACKUP_FILTER<br \/> RESTORE_FILTER<\/p><h4><strong>To perform the backup:<\/strong><\/h4><p><code><strong>[informix@localhost backups]$ ontape -s -L 0<\/strong><br \/> 10 percent done.<br \/> 100 percent done.<br \/> File created: \/opt\/IBM\/informix\/backups\/localhost.localdomain_0_L0<\/code><\/p><p>Please label this tape as number 1 in the arc tape sequence.<br \/> This tape contains the following logical logs:<\/p><p>16<\/p><p>Program over.<\/p><h4><strong>To perform a restore:<\/strong><\/h4><p><strong>[informix@localhost backups]$ ontape -r<\/strong><br \/> Restore will use level 0 archive file \/opt\/IBM\/informix\/backups\/localhost.localdomain_0_L0. Press Return to continue ...<\/p><p>Archive Tape Information<\/p><p>Tape type: Archive Backup Tape<br \/> Online version: IBM Informix Dynamic Server Version 12.10.FC6AEE<br \/> Archive date: Wed Apr 20 09:20:26 2016<br \/> User id: informix<br \/> Terminal id: \/dev\/pts\/0<br \/> Archive level: 0<br \/> Tape device: \/opt\/IBM\/informix\/backups\/<br \/> Tape blocksize (in k): 32<br \/> Tape size (in k): system defined for directory<br \/> Tape number in series: 1<\/p><p>Spaces to restore:1 [rootdbs]<br \/> 2 [plog]<br \/> 3 [llog]<br \/> 4 [datadbs1]<br \/> 5 [datadbs2]<br \/> 6 [datadbs3]<br \/> 7 [data8dbs1]<br \/> 8 [data8dbs2]<br \/> 9 [data8dbs3]<br \/> 10 [sbspace1]<\/p><p>Archive Information<\/p><p>IBM Informix Dynamic Server Copyright 2001, 2015 IBM Corporation<br \/> Initialization Time 03\/29\/2016 08:15:27<br \/> System Page Size 2048<br \/> Version 28<br \/> Index Page Logging OFF<br \/> Archive CheckPoint Time 04\/20\/2016 09:20:26<\/p><p>Dbspaces<br \/> number flags fchunk nchunks flags owner name<br \/> 1 1 1 1 N A informix rootdbs<br \/> 2 1000001 2 1 N P A informix plog<br \/> 3 1 3 1 N A informix llog<br \/> 4 1 4 1 N A informix datadbs1<br \/> 5 1 5 1 N A informix datadbs2<br \/> 6 1 6 1 N A informix datadbs3<br \/> 7 1 7 1 N A informix data8dbs1<br \/> 8 1 8 1 N A informix data8dbs2<br \/> 9 1 9 1 N A informix data8dbs3<br \/> 10 2001 10 1 N T A informix tmpdbspace<br \/> 11 8001 11 1 N S A informix sbspace1<br \/> 12 a001 12 1 N U A informix tmpsbspace<\/p><p>Chunks<br \/> chk\/dbs offset size free bpages flags pathname<br \/> 1 1 0 78848 67808 PO--- \/opt\/IBM\/informix\/storage\/rootdbs<br \/> 2 2 0 32768 0 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_plog_p_1<br \/> 3 3 0 32768 15 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_llog_p_1<br \/> 4 4 0 32768 32715 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs1_p_1<br \/> 5 5 0 32768 32715 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs2_p_1<br \/> 6 6 0 32768 32715 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs3_p_1<br \/> 7 7 0 32768 29652 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs1_p_1<br \/> 8 8 0 32768 32556 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs2_p_1<br \/> 9 9 0 32768 32556 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs3_p_1<br \/> 10 10 0 32768 32332 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpdbspace_p_1<br \/> 11 11 0 32768 8466 POS-- \/opt\/IBM\/informix\/storage\/ol_informix1210_sbspace1_p_1<br \/> 12 12 0 32768 8466 POS-- \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpsbspace_p_1<\/p><p>Continue restore? (y\/n)y<br \/> Do you want to back up the logs? (y\/n)n<br \/> Warning: Parameter's user-configured value was adjusted. (DS_MAX_SCANS)<br \/> Warning: Parameter's user-configured value was adjusted. (ONLIDX_MAXMEM)<br \/> Restore a level 1 archive (y\/n) n<br \/> Do you want to restore log tapes? (y\/n)n<br \/> \/opt\/IBM\/informix\/bin\/onmode -sy<\/p><p>Program over.<\/p><p><strong><br \/> [informix@localhost backups]$ onmode -m<br \/> on[informix@localhost backups]$ onstat -<br \/> <\/strong><\/p><p>IBM Informix Dynamic Server Version 12.10.FC6AEE -- On-Line -- Up 00:00:32 -- 219400 Kbytes<\/p><p>\u00a0<\/p><h2>5) Ontape to a directory using filters<\/h2><p>Here's how it works using the FILTER parameters. This allows Informix to manage the file names while enabling compression.<\/p><h4><strong>For this example:<\/strong><\/h4><p>TAPEDEV $INFORMIXDIR\/backups<br \/> BACKUP_FILTER \/usr\/bin\/gzip<br \/> RESTORE_FILTER \/usr\/bin\/gunzip<\/p><h4><strong>To perform the backup:<\/strong><\/h4><p><code><strong>[informix@localhost backups]$ ontape -s -L 0<br \/> <\/strong><\/code><\/p><p>Using the backup and restore filter \/usr\/bin\/gzip.<br \/> 10 percent done.<br \/> 100 percent done.<br \/> File created: \/opt\/IBM\/informix\/backups\/localhost.localdomain_0_L0<\/p><p>Please label this tape as number 1 in the arc tape sequence.<br \/> This tape contains the following logical logs:<\/p><p>16<\/p><p>Program over.<\/p><h4><strong>To perform a restore:<\/strong><\/h4><p><code><strong>[informix@localhost backups]$ ontape -r<br \/> <\/strong><\/code><\/p><p>Restore will use level 0 archive file \/opt\/IBM\/informix\/backups\/localhost.localdomain_0_L0. Press Return to continue ...<\/p><p>Using the backup and restore filter \/usr\/bin\/gunzip.<\/p><p>Archive Tape Information<\/p><p>Tape type: Archive Backup Tape<br \/> Online version: IBM Informix Dynamic Server Version 12.10.FC6AEE<br \/> Archive date: Wed Apr 20 09:43:36 2016<br \/> User id: informix<br \/> Terminal id: \/dev\/pts\/0<br \/> Archive level: 0<br \/> Tape device: \/opt\/IBM\/informix\/backups\/<br \/> Tape blocksize (in k): 32<br \/> Tape size (in k): system defined for directory<br \/> Tape number in series: 1<br \/> Backup filter: \/usr\/bin\/gzip<\/p><p>Spaces to restore:1 [rootdbs]<br \/> 2 [plog]<br \/> 3 [llog]<br \/> 4 [datadbs1]<br \/> 5 [datadbs2]<br \/> 6 [datadbs3]<br \/> 7 [data8dbs1]<br \/> 8 [data8dbs2]<br \/> 9 [data8dbs3]<br \/> 10 [sbspace1]<\/p><p>Archive Information<\/p><p>IBM Informix Dynamic Server Copyright 2001, 2015 IBM Corporation<br \/> Initialization Time 03\/29\/2016 08:15:27<br \/> System Page Size 2048<br \/> Version 28<br \/> Index Page Logging OFF<br \/> Archive CheckPoint Time 04\/20\/2016 09:43:35<\/p><p>Dbspaces<br \/> number flags fchunk nchunks flags owner name<br \/> 1 1 1 1 N A informix rootdbs<br \/> 2 1000001 2 1 N P A informix plog<br \/> 3 1 3 1 N A informix llog<br \/> 4 1 4 1 N A informix datadbs1<br \/> 5 1 5 1 N A informix datadbs2<br \/> 6 1 6 1 N A informix datadbs3<br \/> 7 1 7 1 N A informix data8dbs1<br \/> 8 1 8 1 N A informix data8dbs2<br \/> 9 1 9 1 N A informix data8dbs3<br \/> 10 2001 10 1 N T A informix tmpdbspace<br \/> 11 8001 11 1 N S A informix sbspace1<br \/> 12 a001 12 1 N U A informix tmpsbspace<\/p><p>Chunks<br \/> chk\/dbs offset size free bpages flags pathname<br \/> 1 1 0 78848 67808 PO--- \/opt\/IBM\/informix\/storage\/rootdbs<br \/> 2 2 0 32768 0 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_plog_p_1<br \/> 3 3 0 32768 15 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_llog_p_1<br \/> 4 4 0 32768 32715 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs1_p_1<br \/> 5 5 0 32768 32715 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs2_p_1<br \/> 6 6 0 32768 32715 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_datadbs3_p_1<br \/> 7 7 0 32768 29652 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs1_p_1<br \/> 8 8 0 32768 32556 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs2_p_1<br \/> 9 9 0 32768 32556 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_data8dbs3_p_1<br \/> 10 10 0 32768 32332 PO--E \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpdbspace_p_1<br \/> 11 11 0 32768 8466 POS-- \/opt\/IBM\/informix\/storage\/ol_informix1210_sbspace1_p_1<br \/> 12 12 0 32768 8466 POS-- \/opt\/IBM\/informix\/storage\/ol_informix1210_tmpsbspace_p_1<\/p><p>Continue restore? (y\/n)y<br \/> Do you want to back up the logs? (y\/n)n<br \/> Using the backup and restore filter \/usr\/bin\/gunzip.<br \/> Warning: Parameter's user-configured value was adjusted. (DS_MAX_SCANS)<br \/> Warning: Parameter's user-configured value was adjusted. (ONLIDX_MAXMEM)<br \/> Restore a level 1 archive (y\/n) n<br \/> Do you want to restore log tapes? (y\/n)n<br \/> \/opt\/IBM\/informix\/bin\/onmode -sy<\/p><p>Program over.<\/p><p><strong><br \/> [informix@localhost backups]$ onmode -m<br \/> [informix@localhost backups]$ onstat -<br \/> <\/strong><\/p><p>IBM Informix Dynamic Server Version 12.10.FC6AEE -- On-Line -- Up 00:00:38 -- 219400 Kbytes<br \/> Again, you'll see the only difference is the line that notes the compression\/decompression method.<\/p><h2>Archive output<\/h2><p>Finally, we'll take a look at the files that were generated from the different backup methods.<\/p><h4><strong>Standard ontape:<\/strong><\/h4><p><code>[informix@localhost backups]$ ls -ltr<br \/> total 78388<br \/> -rw-rw----. 1 informix informix 36274176 Apr 20 08:45 ontape.backup<\/code><\/p><h4><strong>Standard ontape with the BACKUP_FILTER:<\/strong><\/h4><p><code>-rw-rw-r--. 1 informix informix 2344058 Apr 20 09:07 ontape.compressed.gz<\/code><\/p><h4><strong>Using STDIO piped through a compress command:<\/strong><\/h4><p><code>-rw-rw----. 1 informix informix 2424832 Apr 20 09:14 ontape.backup.compressed<\/code><\/p><h4><strong>Standard ontape to a directory:<\/strong><\/h4><p><code>-rw-rw----. 1 informix informix 36765696 Apr 20 09:20 localhost.localdomain_0_20160420_092026_L0<\/code><\/p><h4><strong>Standard ontape to a directory with the BACKUP_FILTER:<\/strong><\/h4><p><code>-rw-rw----. 1 informix informix 2457600 Apr 20 09:43 localhost.localdomain_0_L0<\/code><\/p><p>\u00a0<\/p>","_et_gb_content_width":"","content-type":"","footnotes":""},"categories":[4166,26],"tags":[24,27,756,28],"class_list":["post-2069","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-informix","tag-database-backup","tag-informix","tag-ontape","tag-restore"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.1 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Informix Ontape Backup\/Restore Using Compression<\/title>\n<meta name=\"description\" content=\"Learn how the IBM Informix Dynamic Server engine provides improved capability to perform backups to the file system while also using compression.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Informix Ontape Backup\/Restore Using Compression\" \/>\n<meta property=\"og:description\" content=\"Learn how the IBM Informix Dynamic Server engine provides improved capability to perform backups to the file system while also using compression.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/\" \/>\n<meta property=\"og:site_name\" content=\"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-22T16:09:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-24T15:05:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/informix-ontape-backup-restore-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"557\" \/>\n\t<meta property=\"og:image:height\" content=\"291\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Paul Anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@virtual_dba\" \/>\n<meta name=\"twitter:site\" content=\"@virtual_dba\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/\"},\"author\":{\"name\":\"Paul Anderson\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/f3208b9d87c43d6fd03b0a1b78c0ca34\"},\"headline\":\"Informix Ontape Backup\/Restore Using Compression\",\"datePublished\":\"2016-06-22T16:09:10+00:00\",\"dateModified\":\"2023-03-24T15:05:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/\"},\"wordCount\":2512,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/virtual-dba.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/informix-ontape-backup-restore-1.jpg\",\"keywords\":[\"database backup\",\"informix\",\"ontape\",\"restore\"],\"articleSection\":[\"Blog\",\"Informix\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/\",\"url\":\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/\",\"name\":\"Informix Ontape Backup\/Restore Using Compression\",\"isPartOf\":{\"@id\":\"https:\/\/virtual-dba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/informix-ontape-backup-restore-1.jpg\",\"datePublished\":\"2016-06-22T16:09:10+00:00\",\"dateModified\":\"2023-03-24T15:05:27+00:00\",\"description\":\"Learn how the IBM Informix Dynamic Server engine provides improved capability to perform backups to the file system while also using compression.\",\"breadcrumb\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#primaryimage\",\"url\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/informix-ontape-backup-restore-1.jpg\",\"contentUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/informix-ontape-backup-restore-1.jpg\",\"width\":557,\"height\":291,\"caption\":\"_informix-ontape-backup-restore\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/virtual-dba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Informix Ontape Backup\/Restore Using Compression\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/virtual-dba.com\/#website\",\"url\":\"https:\/\/virtual-dba.com\/\",\"name\":\"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts\",\"description\":\"Remote Database Administration\",\"publisher\":{\"@id\":\"https:\/\/virtual-dba.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/virtual-dba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/virtual-dba.com\/#organization\",\"name\":\"Virtual-DBA: Remote DBA | Remote Database Administration\",\"alternateName\":\"Virtual-DBA powered by XTIVIA\",\"url\":\"https:\/\/virtual-dba.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg\",\"contentUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg\",\"width\":557,\"height\":291,\"caption\":\"Virtual-DBA: Remote DBA | Remote Database Administration\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/virtual_dba\",\"https:\/\/www.linkedin.com\/showcase\/36220649\/\",\"https:\/\/www.youtube.com\/channel\/UCx3AIeUQ2ziTLKZSJDZ-SEg\"],\"description\":\"Eliminate database downtime and spiraling costs with XTIVIA\u2019s Virtual-DBA. In today\u2019s always-on business world, gaps in 24x7 on-call DBA support, neglected maintenance and security, or a stretched team struggling with overwhelming workloads can lead to costly disruptions and threaten business continuity. XTIVIA\u2019s Virtual-DBA provides the immediate, expert database administration you need, exactly when you need it, ensuring optimal performance, ironclad security, and significant cost savings without the burden of expanding your in-house team. The goal of Virtual-DBA is to provide a cost-effective solution for organizations seeking to optimize the security, management, maintenance, availability, and performance of their critical business systems, whether self-managed or cloud-managed (e.g., AWS RDS, Azure SQL Database). We accomplish this through a comprehensive remote DBA service offering designed specifically to meet the Oracle\u00ae, DB2\u00ae, Informix\u00ae, MySQL\u2122, PostgreSQL\u00ae, MongoDB\u00ae, MariaDB, and Microsoft SQL Server\u00ae, CockroachDB, Databricks, AWS, and Azure needs of our clients.\",\"email\":\"info@xtivia.com\",\"telephone\":\"8886853101\",\"legalName\":\"XTIVIA, Inc\",\"foundingDate\":\"1992-05-01\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"201\",\"maxValue\":\"500\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/f3208b9d87c43d6fd03b0a1b78c0ca34\",\"name\":\"Paul Anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Paul Anderson\"},\"url\":\"https:\/\/virtual-dba.com\/author\/paul-anderson\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Informix Ontape Backup\/Restore Using Compression","description":"Learn how the IBM Informix Dynamic Server engine provides improved capability to perform backups to the file system while also using compression.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/","og_locale":"en_US","og_type":"article","og_title":"Informix Ontape Backup\/Restore Using Compression","og_description":"Learn how the IBM Informix Dynamic Server engine provides improved capability to perform backups to the file system while also using compression.","og_url":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/","og_site_name":"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","article_published_time":"2016-06-22T16:09:10+00:00","article_modified_time":"2023-03-24T15:05:27+00:00","og_image":[{"width":557,"height":291,"url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/informix-ontape-backup-restore-1.jpg","type":"image\/jpeg"}],"author":"Paul Anderson","twitter_card":"summary_large_image","twitter_creator":"@virtual_dba","twitter_site":"@virtual_dba","twitter_misc":{"Written by":"Paul Anderson","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#article","isPartOf":{"@id":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/"},"author":{"name":"Paul Anderson","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/f3208b9d87c43d6fd03b0a1b78c0ca34"},"headline":"Informix Ontape Backup\/Restore Using Compression","datePublished":"2016-06-22T16:09:10+00:00","dateModified":"2023-03-24T15:05:27+00:00","mainEntityOfPage":{"@id":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/"},"wordCount":2512,"commentCount":1,"publisher":{"@id":"https:\/\/virtual-dba.com\/#organization"},"image":{"@id":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#primaryimage"},"thumbnailUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/informix-ontape-backup-restore-1.jpg","keywords":["database backup","informix","ontape","restore"],"articleSection":["Blog","Informix"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/","url":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/","name":"Informix Ontape Backup\/Restore Using Compression","isPartOf":{"@id":"https:\/\/virtual-dba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#primaryimage"},"image":{"@id":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#primaryimage"},"thumbnailUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/informix-ontape-backup-restore-1.jpg","datePublished":"2016-06-22T16:09:10+00:00","dateModified":"2023-03-24T15:05:27+00:00","description":"Learn how the IBM Informix Dynamic Server engine provides improved capability to perform backups to the file system while also using compression.","breadcrumb":{"@id":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#primaryimage","url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/informix-ontape-backup-restore-1.jpg","contentUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/informix-ontape-backup-restore-1.jpg","width":557,"height":291,"caption":"_informix-ontape-backup-restore"},{"@type":"BreadcrumbList","@id":"https:\/\/virtual-dba.com\/blog\/informix-ontape-backup-restore-using-compression\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/virtual-dba.com\/"},{"@type":"ListItem","position":2,"name":"Informix Ontape Backup\/Restore Using Compression"}]},{"@type":"WebSite","@id":"https:\/\/virtual-dba.com\/#website","url":"https:\/\/virtual-dba.com\/","name":"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","description":"Remote Database Administration","publisher":{"@id":"https:\/\/virtual-dba.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/virtual-dba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/virtual-dba.com\/#organization","name":"Virtual-DBA: Remote DBA | Remote Database Administration","alternateName":"Virtual-DBA powered by XTIVIA","url":"https:\/\/virtual-dba.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/","url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg","contentUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg","width":557,"height":291,"caption":"Virtual-DBA: Remote DBA | Remote Database Administration"},"image":{"@id":"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/virtual_dba","https:\/\/www.linkedin.com\/showcase\/36220649\/","https:\/\/www.youtube.com\/channel\/UCx3AIeUQ2ziTLKZSJDZ-SEg"],"description":"Eliminate database downtime and spiraling costs with XTIVIA\u2019s Virtual-DBA. In today\u2019s always-on business world, gaps in 24x7 on-call DBA support, neglected maintenance and security, or a stretched team struggling with overwhelming workloads can lead to costly disruptions and threaten business continuity. XTIVIA\u2019s Virtual-DBA provides the immediate, expert database administration you need, exactly when you need it, ensuring optimal performance, ironclad security, and significant cost savings without the burden of expanding your in-house team. The goal of Virtual-DBA is to provide a cost-effective solution for organizations seeking to optimize the security, management, maintenance, availability, and performance of their critical business systems, whether self-managed or cloud-managed (e.g., AWS RDS, Azure SQL Database). We accomplish this through a comprehensive remote DBA service offering designed specifically to meet the Oracle\u00ae, DB2\u00ae, Informix\u00ae, MySQL\u2122, PostgreSQL\u00ae, MongoDB\u00ae, MariaDB, and Microsoft SQL Server\u00ae, CockroachDB, Databricks, AWS, and Azure needs of our clients.","email":"info@xtivia.com","telephone":"8886853101","legalName":"XTIVIA, Inc","foundingDate":"1992-05-01","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"201","maxValue":"500"}},{"@type":"Person","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/f3208b9d87c43d6fd03b0a1b78c0ca34","name":"Paul Anderson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Paul Anderson"},"url":"https:\/\/virtual-dba.com\/author\/paul-anderson\/"}]}},"_links":{"self":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts\/2069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/comments?post=2069"}],"version-history":[{"count":0,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts\/2069\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/media\/30193"}],"wp:attachment":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/media?parent=2069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/categories?post=2069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/tags?post=2069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}