3 years ago
In this post we will go over how I use Azure blob to take backup on files on prem.
In our case we needed a scalable, long-term backup for our file share that has data that does not change often. Historically we have very rarely had to recover files from this share and have no issue with recovering time. After investigation we found that Azure Blob matches our needs and with Archive Tier, we get it to a cheap price.
Create a Storage Account and Blob Container
- Log in to portal.azure.com
- Create a resource group
- Create a Storage account
a. Add a new Storage Account
b. Set Resource Group, Storage account name, Location and other settings.
c. Go to Review and Create tab and press Create after the Validation has passed.
- Create Azure blob container
a. Set a name on the container and press OK
Copy files to Azure.
I am using AzCopy with the sync parameter to copy new files and files that has been changed. Download Azcopy från https://docs.microsoft.com/sv-se/azure/storage/common/storage-use-azcopy-v10.
To use Azcopy we have to create a SAS-token I Azure Portal.
- Go to Storage Accounts > <Storage Account> > Shared access signatures
- Now you have to choose what you are allowing and from which IP-addresses we can run AzCopy from.
- Generate SAS-Token.
- Now use the SAS-token to create a sync-string.
Example: .\azcopy sync ”<From>” ”<Container URL>/<Azure Blob><SAS-token>” –recursive=true
In Microsoft Azure Storage Explorer can we now see the files are copied and has Cool Access Tier.
Classify data with correct Tier.
In this case I would have all data in the Archive Tier. I created a Lifecycle Management to see the Tier automatically after 1 day.
- Add a new Lifecycle Rule
- Add settings for the rule. In my case all files will be in Access tier Archive after 1 day.
You can read more about the Tiers here https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers
Vi erbjuder personlig rådgivning med författaren för 1400 SEK per timme. Anmäl ditt intresse i här så återkommer vi så snart vi kan.