From the FAQ
"I manually rehydrated an archived blob, how do I prevent it from being moved back to the Archive tier temporarily?
When a blob is moved from one access tier to another, its last modification time doesn't change. If you manually rehydrate an archived blob to hot tier, it would be moved back to archive tier by the lifecycle management engine. Disable the rule that affects this blob temporarily to prevent it from being archived again. Re-enable the rule when the blob can be safely moved back to archive tier. You may also copy the blob to another location if it needs to stay in hot or cool tier permanently."
But, what if I want to exclude a blob from being moved to the Archive tier? I want to keep one blob (synobkpinfo.db from Synology HyperBackup) to access it in this folder, and I want to send the other blobs to Archive tier.
I cannot copy in other folder, the access must be in this folder, but I only need this blob in the Cool storage.
Is this code OK for this task?
{
"rules": [
{
"enabled": false,
"name": "mover-a-archivo",
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"tierToArchive": {
"daysAfterModificationGreaterThan": 1
}
}
},
"filters": {
"blobTypes": [
"blockBlob"
]
}
}
},
{
"enabled": false,
"name": "excluir-synobkpinfo",
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"tierToCool": {
"daysAfterModificationGreaterThan": 1
}
}
},
"filters": {
"blobTypes": [
"blockBlob"
],
"prefixMatch": [
"container/folder/synobkpinfo.db"
]
}
}
}
]
}
Thanks in advance
