{"id":4633,"date":"2020-07-14T10:26:13","date_gmt":"2020-07-14T13:26:13","guid":{"rendered":"https:\/\/www.dbarj.com.br\/?p=4633"},"modified":"2020-07-14T15:02:55","modified_gmt":"2020-07-14T18:02:55","slug":"oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/","title":{"rendered":"OCI Volumes &#8211; What happens to Incremental backup when Full is deleted?"},"content":{"rendered":"<p>Those days, in one of my company mail threads, a colleague stated: <span lang=\"EN-US\"><b>&#8220;<\/b><\/span><b>We have tested the restores, when the oldest backup is an incremental and prior full backups have been deleted. It works!&#8221;<\/b><\/p>\n<p>This is a pretty funny scenario. So I&#8217;ve decided to do some further investigations to understand what really happens in the background:<\/p>\n<ul>\n<li>Are the prior Fulls Backups really deleted when there are some Incremental&#8217;s created after it?<\/li>\n<li>Do we pay for them?<\/li>\n<\/ul>\n<p>Let&#8217;s see..<\/p>\n<h3>First the Definitions<\/h3>\n<p class=\"keepWithNext\">There are two backup types available in the\u00a0<span class=\"ProductBlock Storage\">Block Volume<\/span>\u00a0service:<\/p>\n<ul>\n<li value=\"1\"><strong>Incremental:<\/strong>\u00a0This backup type includes only the changes since the last backup.<\/li>\n<li value=\"2\"><strong>Full:<\/strong>\u00a0This backup type includes all changes since the volume was created.<\/li>\n<\/ul>\n<p>&#8220;You can restore a volume from any of your incremental or full volume backups. Both backup types enable you to restore the full volume contents to the point-in-time snapshot of the volume when the backup was taken. <span style=\"text-decoration: underline; color: #ff0000;\"><strong>You don&#8217;t need to keep the initial full backup or subsequent incremental backups in the backup chain and restore them in sequence<\/strong><\/span>, you only need to keep the backups taken for the times you care about.&#8221;<\/p>\n<p>&#8220;For incremental backups, they are a record of all the changes since the last backup. If the first backup on a volume is created as incremental, it is effectively a full backup. For full backups, they are a record of all the changes since the volume was created.&#8221;<\/p>\n<p>Source: <a href=\"https:\/\/docs.cloud.oracle.com\/en-us\/iaas\/Content\/Block\/Concepts\/blockvolumebackups.htm#backuptype\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.cloud.oracle.com\/en-us\/iaas\/Content\/Block\/Concepts\/blockvolumebackups.htm#backuptype<\/a><\/p>\n<p>Oracle also gives an example:<\/p>\n<p>&#8220;For example, in a scenario where you create a 16 TB block volume, modify 40 GB on the volume, and then launch a full backup of the volume, upon completion, the volume backup size is 40 GB. If you then modify an additional 4 GB and create an incremental backup, the unique size of the incremental backup will be 4 GB. If the full backup is deleted, the incremental backup will retain the full 44 GB necessary to restore the volume contents.&#8221;<\/p>\n<h5>So what it&#8217;s saying is:<\/h5>\n<ul>\n<li>Task 1 &gt; Create A Volume of 16 TB<\/li>\n<li>Task 2 &gt; Change 40GB<\/li>\n<li>Task 3 &gt; Take a Full Backup &gt; It will be a 40GB backup.<\/li>\n<li>Taks 4 &gt; Modify 4GB.<\/li>\n<li>Task 5 &gt; Take a Incr Backup &gt; It will be a 4GB backup.<\/li>\n<li>Taks 6 &gt; Full is Deleted. &gt;<strong> Incremental of Task 5 will be updated to 44G!<\/strong><\/li>\n<\/ul>\n<h5>There is also another scenario:<\/h5>\n<p>&#8220;If there was a third incremental backup of non-overlapping blocks, with a size of 1 GB, created after the second incremental backup, and then the full backup is deleted, the third backup would stay at a 1 GB size, and the second incremental backup size would be updated to 44 GB. The blocks are accounted for in the earliest backup that references them.&#8221;<\/p>\n<ul>\n<li>Task 1 &gt; Create A Volume of 16 TB<\/li>\n<li>Task 2 &gt; Change 40GB<\/li>\n<li>Task 3 &gt; Take a Full Backup &gt; It will be a 40GB backup.<\/li>\n<li>Taks 4 &gt; Modify 4GB.<\/li>\n<li>Task 5 &gt; Take a Incr Backup &gt; It will be a 4GB backup.<\/li>\n<li>Taks 6 &gt; Modify 1GB (non-overlapping).<\/li>\n<li>Task 7 &gt; Take a Incr Backup &gt; It will be a 1GB backup.<\/li>\n<li>Task 8 &gt; Full is Deleted. &gt;<strong> Incremental of Task 5 will be updated to 44G! Incremental of Task 7 will not change.\u00a0<\/strong><\/li>\n<\/ul>\n<p>But how do I get charged while all those merges are happening?<\/p>\n<h3>Trying on my lab<\/h3>\n<p>Lets test it.. On this demo, I will create a 50GB volume and create\/modify some non-overlapping files on it. Let&#8217;s play..<\/p>\n<p id=\"rwWqSAX\"><img loading=\"lazy\" decoding=\"async\" width=\"1736\" height=\"1312\" class=\"alignnone size-full wp-image-4634 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef64c66d65e5.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef64c66d65e5.png 1736w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef64c66d65e5-300x227.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef64c66d65e5-1024x774.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef64c66d65e5-768x580.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef64c66d65e5-1536x1161.png 1536w\" sizes=\"auto, (max-width: 1736px) 100vw, 1736px\" \/><\/p>\n<p>First create the mounting points..<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[root@demoserv ~]# lsblk\r\nNAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT\r\nsdc               8:32   0   50G  0 disk\r\nsda               8:0    0 46.6G  0 disk\r\n\u251c\u2500sda2            8:2    0    8G  0 part [SWAP]\r\n\u251c\u2500sda3            8:3    0 38.4G  0 part \/\r\n\u2514\u2500sda1            8:1    0  200M  0 part \/boot\/efi\r\n[root@demoserv ~]# pvcreate \/dev\/sdc\r\n  Physical volume \"\/dev\/sdc\" successfully created.\r\n[root@demoserv ~]# vgcreate vg_test \/dev\/sdc\r\n  Volume group \"vg_test\" successfully created\r\n[root@demoserv ~]# lvcreate -n lv_1 -L 10G vg_test\r\n  Logical volume \"lv_1\" created.\r\n[root@demoserv ~]# lvcreate -n lv_2 -L 10G vg_test\r\n  Logical volume \"lv_2\" created.\r\n[root@demoserv ~]# lvcreate -n lv_3 -L 10G vg_test\r\n  Logical volume \"lv_3\" created.\r\n[root@demoserv ~]# mkfs.ext4 \/dev\/vg_test\/lv_1\r\n[root@demoserv ~]# mkfs.ext4 \/dev\/vg_test\/lv_2\r\n[root@demoserv ~]# mkfs.ext4 \/dev\/vg_test\/lv_3\r\n[root@demoserv ~]# mkdir \/test1 \/test2 \/test3\r\n[root@demoserv ~]# mount \/dev\/vg_test\/lv_1 \/test1\r\n[root@demoserv ~]# mount \/dev\/vg_test\/lv_2 \/test2\r\n[root@demoserv ~]# mount \/dev\/vg_test\/lv_3 \/test3\r\n[root@demoserv ~]#<\/pre>\n<p>Note I&#8217;ve created the disk and allocated 3 LVMs of 10GBs each, so I can control if the file that I will be generating is overlapping or not the disk blocks.<\/p>\n<p>Creating a 10G file:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[root@demoserv ~]# head -c 10G &lt;\/dev\/urandom &gt;\/test1\/sample.txt\r\nhead: write error: No space left on device\r\nhead: demoserv error\r\n[root@oci360comp ~]# ls -lah \/test1\/\r\ntotal 9.7G\r\ndrwxr-xr-x.  3 root root 4.0K Jun 26 17:02 .\r\ndr-xr-xr-x. 21 root root 4.0K Jun 26 15:53 ..\r\ndrwx------.  2 root root  16K Jun 26 17:00 lost+found\r\n-rw-r--r--.  1 root root 9.7G Jun 26 17:33 sample.txt\r\n[root@demoserv ~]#<\/pre>\n<p>Now I will take a full backup.<\/p>\n<p id=\"rTYvZhp\"><img loading=\"lazy\" decoding=\"async\" width=\"1928\" height=\"310\" class=\"alignnone size-full wp-image-4636 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef668d55b47f.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef668d55b47f.png 1928w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef668d55b47f-300x48.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef668d55b47f-1024x165.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef668d55b47f-768x123.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef668d55b47f-1536x247.png 1536w\" sizes=\"auto, (max-width: 1928px) 100vw, 1928px\" \/><\/p>\n<p>Now I will duplicate the file to \/test2\/ (non-overlapping blocks) and take an incremental:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[root@demoserv ~]# cp -av \/test1\/sample.txt \/test2\/\r\n\u2018\/test1\/sample.txt\u2019 -&gt; \u2018\/test2\/sample.txt\u2019\r\n[root@demoserv ~]#<\/pre>\n<p id=\"QkeOUba\"><img loading=\"lazy\" decoding=\"async\" width=\"1914\" height=\"202\" class=\"alignnone size-full wp-image-4642 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef672f3b0aa9.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef672f3b0aa9.png 1914w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef672f3b0aa9-300x32.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef672f3b0aa9-1024x108.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef672f3b0aa9-768x81.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef672f3b0aa9-1536x162.png 1536w\" sizes=\"auto, (max-width: 1914px) 100vw, 1914px\" \/><\/p>\n<p>Now I will duplicate once again the file to \/test3\/ (non-overlapping blocks) and take another incremental:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[root@demoserv ~]# cp -av \/test1\/sample.txt \/test3\/\r\n\u2018\/test1\/sample.txt\u2019 -&gt; \u2018\/test3\/sample.txt\u2019\r\n[root@demoserv ~]#<\/pre>\n<p id=\"whdgtQZ\"><img loading=\"lazy\" decoding=\"async\" width=\"2386\" height=\"334\" class=\"alignnone size-full wp-image-4646 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef67f85c65dd.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef67f85c65dd.png 2386w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef67f85c65dd-300x42.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef67f85c65dd-1024x143.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef67f85c65dd-768x108.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef67f85c65dd-1536x215.png 1536w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef67f85c65dd-2048x287.png 2048w\" sizes=\"auto, (max-width: 2386px) 100vw, 2386px\" \/><\/p>\n<p>IDs:<\/p>\n<ul>\n<li><span style=\"font-size: 10pt;\">test_vol &#8211; ocid1.volume.oc1.iad.abuwcljtdfnhnaiobjna4nm7zrf5fmni6xfnauhsgfisfcyqjhlj7bbdxnfq<\/span><\/li>\n<li><span style=\"font-size: 10pt;\">test_vol_full_1 &#8211; ocid1.volumebackup.oc1.iad.abuwcljtdoonvmsdjsvtmnj5fm7sm5jyy66vnyyuytq65gippkbpyou56k7a<\/span><\/li>\n<li><span style=\"font-size: 10pt;\">test_vol_incr_1 &#8211; ocid1.volumebackup.oc1.iad.abuwcljttpbbbieup3m2lvhvnt5ae45qxbgc3kqz7inzsn3v42qfvxofmnkq<\/span><\/li>\n<li><span style=\"font-size: 10pt;\">test_vol_incr_2 &#8211; ocid1.volumebackup.oc1.iad.abuwcljtjhwizzk4toole7rfombqamnvidtk4ymw42eatznq3okswvxychkq<\/span><\/li>\n<\/ul>\n<p>The playground is ready.. now time to test.<\/p>\n<h4>Test 1 &#8211; Dropping the FULL<\/h4>\n<p>Everything was created on June 26th. 3 hours after I\u00a0 created the backups, I&#8217;ve dropped the first full.<\/p>\n<p id=\"KmGczlh\"><img loading=\"lazy\" decoding=\"async\" width=\"2386\" height=\"422\" class=\"alignnone size-full wp-image-4650 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb73c837749.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb73c837749.png 2386w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb73c837749-300x53.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb73c837749-1024x181.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb73c837749-768x136.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb73c837749-1536x272.png 1536w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb73c837749-2048x362.png 2048w\" sizes=\"auto, (max-width: 2386px) 100vw, 2386px\" \/><\/p>\n<p>And 3 days later.. the terminated volume was still there.. maybe the Full will never disappear while it&#8217;s still needed (or locked) by the incrementals.<\/p>\n<h4>Test 2 &#8211; Dropping the INCR_1<\/h4>\n<p>What if I remove now the first incremental? On June 30th, I deleted it.<\/p>\n<p id=\"JVtIBLp\"><img loading=\"lazy\" decoding=\"async\" width=\"2380\" height=\"414\" class=\"alignnone size-full wp-image-4652 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb740ee1df2.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb740ee1df2.png 2380w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb740ee1df2-300x52.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb740ee1df2-1024x178.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb740ee1df2-768x134.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb740ee1df2-1536x267.png 1536w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5efb740ee1df2-2048x356.png 2048w\" sizes=\"auto, (max-width: 2380px) 100vw, 2380px\" \/><\/p>\n<p>And after some time, it disappeared..<\/p>\n<p id=\"BISuluz\"><img loading=\"lazy\" decoding=\"async\" width=\"2374\" height=\"350\" class=\"alignnone size-full wp-image-4655 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5eff265a44d21.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5eff265a44d21.png 2374w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5eff265a44d21-300x44.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5eff265a44d21-1024x151.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5eff265a44d21-768x113.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5eff265a44d21-1536x226.png 1536w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5eff265a44d21-2048x302.png 2048w\" sizes=\"auto, (max-width: 2374px) 100vw, 2374px\" \/><\/p>\n<p>And after a real long time (9 days later)&#8230; <strong>test_vol_incr_2<\/strong> was finally resized to 30G (but the previous full is still appearing):<\/p>\n<p id=\"yrJboFp\"><img loading=\"lazy\" decoding=\"async\" width=\"2378\" height=\"354\" class=\"alignnone size-full wp-image-4659 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3754a4c8.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3754a4c8.png 2378w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3754a4c8-300x45.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3754a4c8-1024x152.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3754a4c8-768x114.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3754a4c8-1536x229.png 1536w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3754a4c8-2048x305.png 2048w\" sizes=\"auto, (max-width: 2378px) 100vw, 2378px\" \/><\/p>\n<p>Note that on July 5th to July 6th (9 days later) at midnight, the <strong>test_vol_incr_2<\/strong> was finally merged with the 2 previous deleted backups. Check this chart from OCI360 tool:<\/p>\n<p id=\"lEGmsEO\"><img loading=\"lazy\" decoding=\"async\" width=\"1640\" height=\"1014\" class=\"alignnone size-full wp-image-4661 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3dad0223.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3dad0223.png 1640w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3dad0223-300x185.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3dad0223-1024x633.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3dad0223-768x475.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da3dad0223-1536x950.png 1536w\" sizes=\"auto, (max-width: 1640px) 100vw, 1640px\" \/><\/p>\n<p>The exactly moment where the transition happened:<\/p>\n<p id=\"PoawhHB\"><img loading=\"lazy\" decoding=\"async\" width=\"1394\" height=\"470\" class=\"alignnone size-full wp-image-4663 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da4a66881c.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da4a66881c.png 1394w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da4a66881c-300x101.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da4a66881c-1024x345.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0da4a66881c-768x259.png 768w\" sizes=\"auto, (max-width: 1394px) 100vw, 1394px\" \/><\/p>\n<p class=\"p1\">Note that 34818000 (total billed) jumped to 71156000 (2x) and then to 10749300 (3x).<\/p>\n<h3>Am I paying for it?<\/h3>\n<p>If we check the <strong>test_vol_full_1<\/strong> usage:<\/p>\n<p id=\"VmTeiMf\"><img loading=\"lazy\" decoding=\"async\" width=\"1390\" height=\"562\" class=\"alignnone size-full wp-image-4670 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0dab86ccf2f.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0dab86ccf2f.png 1390w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0dab86ccf2f-300x121.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0dab86ccf2f-1024x414.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0dab86ccf2f-768x311.png 768w\" sizes=\"auto, (max-width: 1390px) 100vw, 1390px\" \/><\/p>\n<p>We were only charged during the period it existed until it got terminated. &#8220;Line2&#8221; column is the billed amount.<\/p>\n<p>For <strong>test_vol_incr_1,<\/strong> we were also only charged\u00a0 for the 10G until it was terminated 3 days later..<\/p>\n<p id=\"uaHFnsD\"><img loading=\"lazy\" decoding=\"async\" width=\"1626\" height=\"1004\" class=\"alignnone size-full wp-image-4674 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0dae0e18e5c.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0dae0e18e5c.png 1626w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0dae0e18e5c-300x185.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0dae0e18e5c-1024x632.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0dae0e18e5c-768x474.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0dae0e18e5c-1536x948.png 1536w\" sizes=\"auto, (max-width: 1626px) 100vw, 1626px\" \/><\/p>\n<p>And for <strong>test_vol_incr_2,<\/strong> as we&#8217;ve seen in the previous section, we were initially being charged for 10G and only for the 30G almost 9 days later.<\/p>\n<h3>Conclusion (<strong>for June 2020<\/strong>):<\/h3>\n<p><strong>When the volumes are terminated, I stop paying them (even though they are needed for post incrementals recovery). I believe this is the expected behaviour even if it leaves charge gap.<\/strong><\/p>\n<p>My total backup was 30G (10G first full + 2x10G each incr).. however, as I dropped the FULL as soon as all my lab was created, I was not being charged for the 30G in the beginning.<\/p>\n<p>So I payed for 20G for <strong>incr_1<\/strong> and <strong>incr_2<\/strong> from June 26 until June 30 (while both were not terminated). After <strong>incr_1<\/strong> was removed, I was paying only for 10G while my true usage was 30G. Finally, on July 6th, when my backups got merged into the <strong>incr_2<\/strong>, I was charged again for the 30G.<\/p>\n<p>This can be better checked on the OCI360 chart below:<\/p>\n<p id=\"rCMNgwu\"><img loading=\"lazy\" decoding=\"async\" width=\"1626\" height=\"1008\" class=\"alignnone size-full wp-image-4676 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0daffb93279.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0daffb93279.png 1626w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0daffb93279-300x186.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0daffb93279-1024x635.png 1024w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0daffb93279-768x476.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/07\/img_5f0daffb93279-1536x952.png 1536w\" sizes=\"auto, (max-width: 1626px) 100vw, 1626px\" \/><\/p>\n<b>Have you enjoyed? Please leave a comment or give a \ud83d\udc4d!<\/b>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style2 like-4633 jlk' href='javascript:void(0)' data-task='like' data-post_id='4633' data-nonce='de4404f630' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.dbarj.com.br\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-4633 lc'>+8<\/span><\/a><\/div><\/div> <div class='status-4633 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Those days, in one of my company mail threads, a colleague stated: &#8220;We have tested the restores, when the oldest backup is an incremental and prior full backups have been deleted. It works!&#8221; This is a pretty funny scenario. So I&#8217;ve decided to do some further investigations to understand what really happens in the background: &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,15],"tags":[],"class_list":["post-4633","post","type-post","status-publish","format-standard","hentry","category-oracle-cloud-en","category-database-en","item-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>OCI Volumes - What happens to Incremental backup when Full is deleted? - DBA - Rodrigo Jorge - Oracle Tips and Guides<\/title>\n<meta name=\"description\" content=\"What happens and how do you get charged on Oracle Cloud when you delete Full backups but you still have Incrementals that needs them.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DBA RJ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"OCI Volumes &#8211; What happens to Incremental backup when Full is deleted?\",\"datePublished\":\"2020-07-14T13:26:13+00:00\",\"dateModified\":\"2020-07-14T18:02:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/\"},\"wordCount\":1097,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/img_5ef64c66d65e5.png\",\"articleSection\":[\"Oracle Cloud\",\"Oracle Database General\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/\",\"name\":\"OCI Volumes - What happens to Incremental backup when Full is deleted? - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/img_5ef64c66d65e5.png\",\"datePublished\":\"2020-07-14T13:26:13+00:00\",\"dateModified\":\"2020-07-14T18:02:55+00:00\",\"description\":\"What happens and how do you get charged on Oracle Cloud when you delete Full backups but you still have Incrementals that needs them.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/img_5ef64c66d65e5.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/img_5ef64c66d65e5.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2020\\\/07\\\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OCI Volumes - What happens to Incremental backup when Full is deleted?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\",\"name\":\"DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"description\":\"Blog about Databases, Security and High Availability\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\",\"name\":\"DBA RJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"width\":712,\"height\":712,\"caption\":\"DBA RJ\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OCI Volumes - What happens to Incremental backup when Full is deleted? - DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"What happens and how do you get charged on Oracle Cloud when you delete Full backups but you still have Incrementals that needs them.","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:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/","twitter_misc":{"Written by":"DBA RJ","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"OCI Volumes &#8211; What happens to Incremental backup when Full is deleted?","datePublished":"2020-07-14T13:26:13+00:00","dateModified":"2020-07-14T18:02:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/"},"wordCount":1097,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"image":{"@id":"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef64c66d65e5.png","articleSection":["Oracle Cloud","Oracle Database General"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/","url":"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/","name":"OCI Volumes - What happens to Incremental backup when Full is deleted? - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/#primaryimage"},"image":{"@id":"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef64c66d65e5.png","datePublished":"2020-07-14T13:26:13+00:00","dateModified":"2020-07-14T18:02:55+00:00","description":"What happens and how do you get charged on Oracle Cloud when you delete Full backups but you still have Incrementals that needs them.","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/#primaryimage","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef64c66d65e5.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2020\/06\/img_5ef64c66d65e5.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/en\/2020\/07\/oci-volumes-what-happens-to-incremental-backup-when-full-is-deleted\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"OCI Volumes - What happens to Incremental backup when Full is deleted?"}]},{"@type":"WebSite","@id":"https:\/\/www.dbarj.com.br\/en\/#website","url":"https:\/\/www.dbarj.com.br\/en\/","name":"DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Blog about Databases, Security and High Availability","publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbarj.com.br\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9","name":"DBA RJ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","width":712,"height":712,"caption":"DBA RJ"},"logo":{"@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png"}}]}},"_links":{"self":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/4633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/comments?post=4633"}],"version-history":[{"count":5,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/4633\/revisions"}],"predecessor-version":[{"id":4683,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/4633\/revisions\/4683"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/media?parent=4633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/categories?post=4633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/tags?post=4633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}