{"id":71901,"date":"2017-01-10T10:57:10","date_gmt":"2017-01-10T18:57:10","guid":{"rendered":"https:\/\/www.backblaze.com\/blog\/?p=71901"},"modified":"2021-08-13T07:37:34","modified_gmt":"2021-08-13T14:37:34","slug":"backblaze-b2-lifecycle-rules","status":"publish","type":"post","link":"https:\/\/www.backblaze.com\/blog\/backblaze-b2-lifecycle-rules\/","title":{"rendered":"Introducing Backblaze B2 Cloud Storage Lifecycle Rules"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-72071\" src=\"https:\/\/www.backblaze.com\/blog\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules.jpg\" alt=\"\" width=\"1440\" height=\"820\" srcset=\"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules.jpg 1440w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules-300x171.jpg 300w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules-1024x583.jpg 1024w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules-768x437.jpg 768w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules-560x319.jpg 560w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules-220x124.jpg 220w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/p>\n<p id=\"bzdropcap\">Lifecycle Rules enable the Backblaze B2 Cloud Storage service to automatically hide and\/or delete older versions of files stored in Backblaze B2. This capability is available for the Web GUI, CLI, and API. Lifecycle Rules are applied to some or all of the files in a Backblaze B2 Bucket with each bucket having its own Lifecycle Rules. Let\u2019s take a look at how you can use this capability to help manage your Backblaze B2 storage space.<\/p>\n<h2>Overview<\/h2>\n<p>By default, <a href=\"https:\/\/www.backblaze.com\/cloud-storage\" target=\"_blank\" rel=\"noopener noreferrer\">Backblaze B2<\/a> will keep all the files you upload and all of the different versions of a file you upload. While B2 Cloud Storage will keep the different versions, it will \u201chide\u201d older versions to keep the file list easier to view as shown in the <a href=\"https:\/\/www.backblaze.com\/cloud-storage\/solutions\/media-workflow\">B2 Cloud Storage<\/a> file list (from the Web GUI) below.<br \/>\n<img decoding=\"async\" class=\"aligncenter size-full wp-image-71931\" src=\"https:\/\/www.backblaze.com\/blog\/wp-content\/uploads\/2017\/01\/life-cycle-4.jpg\" alt=\"\" width=\"700\" srcset=\"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/life-cycle-4.jpg 738w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/life-cycle-4-300x165.jpg 300w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/life-cycle-4-560x309.jpg 560w\" sizes=\"(max-width: 738px) 100vw, 738px\" \/><br \/>\nThere are two indicators that we have multiple versions of the same file. First the file name has a &#8220;2&#8221; at the end. This is the file version count and in this case means there are two versions of the file. The date\/time stamp shown is for the most recent version of the file. The second indicator is the \u201cmissing\u201d file information icon on the right.<\/p>\n<p>When you click on the file version count (i.e. the &#8220;2&#8221;), the list will expand to show all of the file versions.<br \/>\n<img decoding=\"async\" class=\"aligncenter size-full wp-image-71941\" src=\"https:\/\/www.backblaze.com\/blog\/wp-content\/uploads\/2017\/01\/life-cycle-5.jpg\" alt=\"\" width=\"700\" srcset=\"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/life-cycle-5.jpg 724w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/life-cycle-5-300x139.jpg 300w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/life-cycle-5-560x259.jpg 560w\" sizes=\"(max-width: 724px) 100vw, 724px\" \/><br \/>\nThe older version, V2 in the example, is hidden. All versions of a given file are available to download, delete, or just keep around as desired. If the file names are different at all, they are stored as different files, so myfile-version1.doc is not the same as myfile-version2.doc, even if the content is identical.<\/p>\n<p>There is no limit to the number of versions you can have of a given file. Also, by default, the length of time older versions stay in Backblaze B2 is forever, unless you delete them or you stop using the B2 Cloud Storage service.<\/p>\n<p>Since all versions of a given file are kept around, you can use Lifecycle Rules to help manage the older versions. Let\u2019s see how.<\/p>\n<h3>Lifecycle Rules and the Web GUI<\/h3>\n<p>To use Lifecycle Rules you will to have an active Backblaze B2 account and at least one bucket. It would help to have a few files in your Backblaze B2 account as well. After logging into your Backblaze B2 account and clicking \u201cBuckets\u201d on the B2 Cloud Storage menu, you\u2019ll see a list of your buckets. For the bucket of interest select the \u201cBucket Settings\u201d link as shown in the example below.<\/p>\n<p>The \u201cBucket Settings\u201d pop up screen, similar to the one below will appear.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-71921\" src=\"https:\/\/www.backblaze.com\/blog\/wp-content\/uploads\/2017\/01\/life-cycle-2.jpg\" alt=\"\" width=\"700\" srcset=\"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/life-cycle-2.jpg 781w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/life-cycle-2-300x258.jpg 300w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/life-cycle-2-768x660.jpg 768w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/life-cycle-2-560x481.jpg 560w\" sizes=\"(max-width: 781px) 100vw, 781px\" \/><br \/>\nPreviously, this screen just contained the settings for making <a href=\"https:\/\/www.backblaze.com\/b2\/docs\/quick_bucket.html\">a bucket<\/a> public or private. The additional items are for managing Lifecycle Rules.<\/p>\n<p>Let\u2019s cover the more common ways to use Lifecycle Rules.<\/p>\n<h3>File Versions<\/h3>\n<p>The File Versions rules apply to all the files in the bucket, unless otherwise specified. The four options for File Versions work as follows:<\/p>\n<ul>\n<li><strong>Keep All Versions (Default):<\/strong> Keeps all versions of a given file.<\/li>\n<li><strong>Keep Only Last Version:<\/strong> This keeps only the most current version of a file. The previous version of the file is \u201chidden\u201d for one day and then deleted.<\/li>\n<li><strong>Keep Prior Versions for a Number of Days:<\/strong> Older versions of a file are deleted after the specified number of days. The number of days can be one or greater. The most current version of a file is always kept unless it is explicitly deleted.<\/li>\n<li><strong>Lifecycle Rules Below:<\/strong> Allows you to construct a rule that applies to one or more files. The three parameters are covered in the next section.<\/li>\n<\/ul>\n<p>Most common situations can be handled using one of the first three options.<\/p>\n<h3>Constructing a Lifecycle Rule in the Web GUI<\/h3>\n<p>Before you start constructing Lifecycle Rules, here are a few things to know:<\/p>\n<ol>\n<li>You are not allowed to create two or more rules that apply to the same file or files.<\/li>\n<li>Remember that the old version of a file is automatically hidden when a new version of the same name is uploaded.<\/li>\n<li>Read the <a href=\"https:\/\/www.backblaze.com\/b2\/docs\/file_versions.html\" target=\"_blank\" rel=\"noopener noreferrer\">File Versions<\/a> documentation to understand how file versioning works in Backblaze B2.<\/li>\n<li>Only use this option if you know what you are doing. You are giving B2 Cloud Storage the ability to hide and then permanently delete your files. Make sure this is something you want to do. Once deleted, files can not be restored by Backblaze. Please be careful.<\/li>\n<\/ol>\n<p>There are three variables you need to enter to construct a Lifecycle Rule. All three are required for each rule added.<\/p>\n<ul>\n<li><b>fileNamePrefix<\/b>: This specifies which files in the bucket the rules applies to. For example, a value of \u201cworkinprocess\/\u201d will apply to all files in the \u201cworkinprocess\u201d directory\/folder. A value of \u201c\u201d (open quote, close quote, no space) means the rule applies to all the files in the bucket.<\/li>\n<li><b>daysFromUploadingtoHiding<\/b>: Setting this value causes the specified files to be hidden automatically after the specified number of days. This applies to all copies of the file, even the most current version. For example, setting this variable to 30 will hide all of the files in the specified directory\/folder 30 days after they have been uploaded\u2014this includes the most current version of the file. Only use this option if you want to hide all versions of the files specified. Valid values are \u201cnull\u201d or numbers one and greater. Null means no files are hidden based on this rule.<\/li>\n<li><b>daysFromHidingtoDeleting<\/b>: Setting this value causes the specified hidden files to be deleted automatically after the specified number of days. Remember that files are automatically hidden when they are replaced with a newer version. For example, if you set this variable to 10, then 10 days after a newer version of the file is uploaded, the older version will be deleted. Valid values are \u201cnull\u201d or numbers one and greater. Null means no files are deleted based on this rule.<\/li>\n<\/ul>\n<h3>Lifecycle Rules Examples<\/h3>\n<p>Let\u2019s assume that you back up your \u201clog\u201d files once a day to Backblaze B2 and that these files are stored in a directory\/folder named log. Below are sample Lifecycle Rules you could set up to manage the log files in Backblaze B2 based on your data retention policies.<\/p>\n<p><strong>Example 1:<\/strong><\/p>\n<p><code>fileNamePrefix: log\/<br \/>\ndaysFromUploadingtoHiding: 7<br \/>\ndaysFromHidingtoDeleting: null<\/code><\/p>\n<p>Result: The files in the log\/ folder will be hidden seven days after they are uploaded to Backblaze B2. This means the current version, as well as any <a href=\"https:\/\/www.backblaze.com\/version-history.html\">previous versions<\/a> of every file in the log\/ folder, will be hidden after seven days. The hidden files are still available for download using their specific file_id and continue to count as part of your Backblaze <a href=\"https:\/\/www.backblaze.com\/b2\/c2c-migration.html\">B2 storage<\/a> amount.<\/p>\n<p><strong>Example 2:<\/strong><\/p>\n<p><code>fileNamePrefix: log\/<br \/>\ndaysFromUploadingtoHiding: 7<br \/>\ndaysFromHidingtoDeleting: 30<\/code><\/p>\n<p>Result: The files in the log\/ folder will be hidden seven days after they are uploaded to Backblaze B2. After the files have been hidden for 30 days, they will be permanently deleted. Until they are deleted, the files are still available for download and count as part of your Backblaze B2 storage amount.<\/p>\n<p><strong>Example 3:<\/strong><\/p>\n<p><code>fileNamePrefix: log\/<br \/>\ndaysFromUploadingtoHiding: null<br \/>\ndaysFromHidingtoDeleting: 180<\/code><\/p>\n<p>Result: The files in the log\/ folder will be deleted 180 days after they have been either 1) explicitly hidden, or 2) been replaced by a file of the same name (i.e. they are an older version of the file\u2014remember older file versions are automatically hidden). Until the files are deleted, all versions of a file are available for download and count as part of your Backblaze B2 storage amount.<\/p>\n<h3>Lifecycle Rules for the CLI and API<\/h3>\n<p>Both the Backblaze B2 CLI and Backblaze B2 API can utilize Lifecycle Rules.<\/p>\n<p>For the Backblaze B2 API, the following calls work with Lifecycle Rules:<\/p>\n<ul>\n<li><code>b2_create_bucket<\/code><\/li>\n<li><code>b2_update_bucket<\/code><\/li>\n<li><code>b2_list_buckets<\/code><\/li>\n<\/ul>\n<p>Each API call has an optional parameter named &#8220;lifecycleRules&#8221; that requires the three variables noted above in the following JSON format:<br \/>\n<code>{<br \/>\n\"daysFromHidingToDeleting\": 30,<br \/>\n\"daysFromUploadingToHiding\": null,<br \/>\n\"fileNamePrefix\": \"backup\/\"<br \/>\n}<\/code><\/p>\n<p>In addition, <code>b2_delete_bucket<\/code> will return the list of lifecycleRules for the bucket being deleted.<\/p>\n<h3>Backblaze B2 Integrations and Lifecycle Rules<\/h3>\n<p>Application developers are encouraged to look at Lifecycle Rules to use in their applications that integrate into B2 Cloud Storage. This is especially true for applications that perform sync or backup operations to B2 Cloud Storage. For example, the user interface of the application could allow the user\/admin to specify the number of days older versions of files should be kept in support of data retention rules in an organization.<\/p>\n<h3>Backblaze B2 Command-Line Tool<\/h3>\n<p>The Backblaze B2 Command-Line Tool provides command line access to the B2 Cloud Storage service. To use Lifecycle Rules with the Backblaze B2 CLI, you will need to be running version 0.7.0 of the Backblaze B2 Command-Line Tool. To upgrade to this version you can follow the <a href=\"https:\/\/www.backblaze.com\/b2\/docs\/quick_command_line.html\" target=\"_blank\" rel=\"noopener noreferrer\">Get Command-Line Tool<\/a> instructions on the Backblaze website. The following commands utilize Lifecycle Rules in the CLI.<\/p>\n<ul>\n<li><code>b2 create-bucket [--bucketInfo &lt;json&gt;] [--lifecycleRules &lt;json&gt;] &lt;bucketName&gt; [allPublic | allPrivate]<\/code><\/li>\n<li><code>b2 update-bucket [--bucketInfo &lt;json&gt;] [--lifecycleRules &lt;json&gt;] &lt;bucketName&gt; [allPublic | allPrivate]<\/code><\/li>\n<li><code>b2 get-bucket &lt;<a href=\"https:\/\/www.backblaze.com\/b2\/docs\/b2_create_bucket.html\">bucketName<\/a>&gt;<\/code><\/li>\n<\/ul>\n<p>The <code>b2 get-bucket<\/code> command will return all the variables for the named bucket.<\/p>\n<h2>Summary<\/h2>\n<p>Lifecycle Rules are very handy in helping manage multiple versions of files you are storing in Backblaze B2. These rules can help save storage space by automatically deleting older, unneeded versions of files and can make the B2 Cloud Storage file list easier to navigate and manage. Since Lifecycle Rules will delete older file versions, one recommendation is to start with a large number of days for &#8220;daysFromHidingtoDeleteing&#8221; and reduce this number as you become comfortable with this feature. The easiest way to do this is to use the &#8220;Keep Prior Versions a Number of Days&#8221; option in the Web GUI.<\/p>\n<p>There is more information on <a href=\"https:\/\/www.backblaze.com\/b2\/docs\/lifecycle_rules.html\" target=\"_blank\" rel=\"noopener noreferrer\">Lifecycle Rules<\/a> in the <a href=\"https:\/\/www.backblaze.com\/b2\/docs\/\" target=\"_blank\" rel=\"noopener noreferrer\">Backblaze B2 documentation section<\/a> of the Backblaze website. The website also has code examples for the <a href=\"https:\/\/www.backblaze.com\/b2\/docs\/calling.html\">API calls<\/a>, information on the Backblaze B2 Command-Line tool, and more. Let us know if you find anything there we need to update or you feel is missing.<\/p>\n<p>[<strong>Editor&#8217;s note:<\/strong> Updated on 1\/11\/2016 with reference to file version documentation along with enhancing specifics regarding hidden files].<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lifecycle Rules enable the Backblaze B2 Cloud Storage service to automatically hide and\/or delete older versions of files stored in Backblaze B2. This capability is available for the Web GUI, CLI, and API. Lifecycle Rules are applied to some or all of the files in a Backblaze B2 Bucket with each bucket having its own&hellip; <a class=\"more-link\" href=\"https:\/\/www.backblaze.com\/blog\/backblaze-b2-lifecycle-rules\/\">Continue reading <span class=\"screen-reader-text\">Introducing Backblaze B2 Cloud Storage Lifecycle Rules<\/span><\/a><\/p>\n","protected":false},"author":12,"featured_media":72071,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[7],"tags":[291,468],"class_list":["post-71901","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-storage","tag-b2","tag-b2cloud","entry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Introducing Backblaze B2 Cloud Storage Lifecycle Rules<\/title>\n<meta name=\"description\" content=\"Lifecycle Rules enable the Backblaze B2 Cloud Storage service to automatically hide and\/or delete older versions of files stored in Backblaze B2. This\" \/>\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.backblaze.com\/blog\/backblaze-b2-lifecycle-rules\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Introducing Backblaze B2 Cloud Storage Lifecycle Rules\" \/>\n<meta property=\"og:description\" content=\"Lifecycle Rules enable the Backblaze B2 Cloud Storage service to automatically hide and\/or delete older versions of files stored in Backblaze B2. This\" \/>\n<meta property=\"og:url\" content=\"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/\" \/>\n<meta property=\"og:site_name\" content=\"Backblaze Blog | Cloud Storage &amp; Cloud Backup\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/backblaze\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-10T18:57:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-13T14:37:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1440\" \/>\n\t<meta property=\"og:image:height\" content=\"820\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Andy Klein\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@backblaze\" \/>\n<meta name=\"twitter:site\" content=\"@backblaze\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andy Klein\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Introducing Backblaze B2 Cloud Storage Lifecycle Rules","description":"Lifecycle Rules enable the Backblaze B2 Cloud Storage service to automatically hide and\/or delete older versions of files stored in Backblaze B2. This","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.backblaze.com\/blog\/backblaze-b2-lifecycle-rules\/","og_locale":"en_US","og_type":"article","og_title":"Introducing Backblaze B2 Cloud Storage Lifecycle Rules","og_description":"Lifecycle Rules enable the Backblaze B2 Cloud Storage service to automatically hide and\/or delete older versions of files stored in Backblaze B2. This","og_url":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/","og_site_name":"Backblaze Blog | Cloud Storage &amp; Cloud Backup","article_publisher":"https:\/\/www.facebook.com\/backblaze","article_published_time":"2017-01-10T18:57:10+00:00","article_modified_time":"2021-08-13T14:37:34+00:00","og_image":[{"width":1440,"height":820,"url":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules.jpg","type":"image\/jpeg"}],"author":"Andy Klein","twitter_card":"summary_large_image","twitter_creator":"@backblaze","twitter_site":"@backblaze","twitter_misc":{"Written by":"Andy Klein","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/#article","isPartOf":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/"},"author":{"name":"Andy Klein","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#\/schema\/person\/9ac7e0bf0bd16852f8bfef352ce5fa8c"},"headline":"Introducing Backblaze B2 Cloud Storage Lifecycle Rules","datePublished":"2017-01-10T18:57:10+00:00","dateModified":"2021-08-13T14:37:34+00:00","mainEntityOfPage":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/"},"wordCount":1636,"commentCount":10,"publisher":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#organization"},"image":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/#primaryimage"},"thumbnailUrl":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules.jpg","keywords":["B2","B2Cloud"],"articleSection":["Cloud Storage"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/","url":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/","name":"Introducing Backblaze B2 Cloud Storage Lifecycle Rules","isPartOf":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/#primaryimage"},"image":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/#primaryimage"},"thumbnailUrl":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules.jpg","datePublished":"2017-01-10T18:57:10+00:00","dateModified":"2021-08-13T14:37:34+00:00","description":"Lifecycle Rules enable the Backblaze B2 Cloud Storage service to automatically hide and\/or delete older versions of files stored in Backblaze B2. This","breadcrumb":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/#primaryimage","url":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules.jpg","contentUrl":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules.jpg","width":1440,"height":820},{"@type":"BreadcrumbList","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/backblaze-b2-lifecycle-rules\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Introducing Backblaze B2 Cloud Storage Lifecycle Rules"}]},{"@type":"WebSite","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#website","url":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/","name":"Backblaze Cloud Solutions Blog","description":"Cloud Storage &amp; Cloud Backup","publisher":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#organization","name":"Backblaze","url":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.backblaze.com\/blog\/wp-content\/uploads\/2017\/12\/backblaze_icon_transparent.png?fit=512%2C512&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.backblaze.com\/blog\/wp-content\/uploads\/2017\/12\/backblaze_icon_transparent.png?fit=512%2C512&ssl=1","width":512,"height":512,"caption":"Backblaze"},"image":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/backblaze","https:\/\/x.com\/backblaze","https:\/\/www.youtube.com\/user\/Backblaze","https:\/\/en.wikipedia.org\/wiki\/Backblaze"]},{"@type":"Person","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#\/schema\/person\/9ac7e0bf0bd16852f8bfef352ce5fa8c","name":"Andy Klein","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2019\/04\/andy.jpg","url":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2019\/04\/andy.jpg","contentUrl":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2019\/04\/andy.jpg","caption":"Andy Klein"},"description":"Andy Klein is the Principal Cloud Storage Storyteller at Backblaze. He has over 25 years of experience in technology marketing and during that time, he has shared his expertise in cloud storage and computer security at events, symposiums, and panels at RSA, SNIA SDC, MIT, the Federal Trade Commission, and hundreds more. He currently writes and rants about drive stats, Storage Pods, cloud storage, and more.","url":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/author\/andy\/"}]}},"jetpack_featured_media_url":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2017\/01\/blog-lifecycle-rules.jpg","_links":{"self":[{"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/posts\/71901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/comments?post=71901"}],"version-history":[{"count":0,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/posts\/71901\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/media\/72071"}],"wp:attachment":[{"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/media?parent=71901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/categories?post=71901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/tags?post=71901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}