Can Azure Storage Lifecycle backup data (rather than move) from one tier to another?

Liam 0 Reputation points
2023-03-25T23:13:26.3866667+00:00

With Azure Blob storage Lifecycle managment, can the tierToCool action be used in a way that it leaves the data in the original storage tier? When I read the documentation it always describes these actions as 'moving' data only. We would like to automate a back up of our data from one tier to another.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,449 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ayomide Oluwaga 946 Reputation points
    2023-03-26T00:46:06.35+00:00

    Hello Liam,

    The tierToCool action in Azure Blob storage Lifecycle management is used to move data from one storage tier to another. It is not designed to leave the data in the original storage tier.


  2. Ayomide Oluwaga 946 Reputation points
    2023-03-27T10:51:49.5866667+00:00

    You are correct, the example policy I provided earlier is still a "move" operation rather than a "copy" operation. In that policy, data is moved from one tier to another based on specific conditions. If you want to keep a copy of the data in the original tier while also creating a copy in the archive tier, you can use a combination of two policies.

    The first policy can be used to create a copy of the data in the archive tier while keeping the original data in the hot or cool tier. Here's an example policy that achieves this:


    {
        "rules": [
            {
                "name": "Copy to Archive",
                "enabled": true,
                "type": "Lifecycle",
                "definition": {
                    "actions": {
                        "baseBlob": {
                            "copy": {
                                "destinationTier": "Archive"
                            }
                        }
                    },
                    "filters": {
                        "blobTypes": [
                            "blockBlob"
                        ],
                        "prefixMatch": [
                            "data/"
                        ]
                    }
                }
            }
        ]
    }
    
    
    In this policy, any new blob with a prefix of "data/" uploaded to the hot or cool tier will be automatically copied to the archive tier. The original data will remain in the hot or cool tier.