Backup your QNAP Device to Azure

Ben SteginkAzure1 Comment

Today I was listening to one of my favorite podcasts, the Microsoft Cloud Show (http://www.microsoftcloudshow.com/) and was reminded about Azure Cool Storage, something I read about when it was first announced a couple weeks ago, https://azure.microsoft.com/en-us/blog/introducing-azure-cool-storage/ but hadn’t a chance to try out yet.

I’ve been running my QNAP backups to hot storage for a few months now, but just upgraded all the drives in my QNAP TS-563 in the last couple of days, so now I have the ability to save nearly 16TB of content (5 x 4TB in a RAID 5). As part of this expansion, I had to redo my entire QNAP setup and figured I would take the chance to switch my backups over to Cool Storage to save myself about 50% on storage(if you don’t see cool storage, make sure you have a region selected that supports it, like East US 2). It also provided a great opportunity for a blog post!

Below is the process to getting it all setup, broken down into 3 simple steps.

  1. Setup your Azure Cool Storage
  2. Download and Setup the Azure App to connect to Azure
  3. Configure your Backup settings

Setup your Azure Cool Storage

  1. Login to your Azure Portal and go to Storage Accounts
  2. Click to Add a new Storage Account
    01-NewStorageAccount
  3. Give you Storage Account a Name
  4. Insure the Deployment Model is “Resource Manager”
  5. Set your Account kind go Blob storage, this will lock you into Standard Performance and set Replication to Locally-redundant storage (LRS).
    02-AccountKind
  6. Set your Access tier to Cool
  7. Select the Subscription you want to us
  8. Either create a new Resource Group or select one you already created
    03-BlobStorage
  9. Finally set the location and click Create
    04-Create
  10. Once the Deployment is Complete, we need to create a container for our backups
    05-DeploymentIsComplete

    1. Refresh your Storage Accounts
      06-RefreshStorageAccounts
    2. Select the Storage Account you just created
      07-SelectStorageAccount
    3. Click to Create a Container
      08-CreateContainer
    4. Give the Container a Name, leave the Access type to Private (unless you want your backups publically accessible) and click Create
      09-NameContainer
  11. You’re now ready to move on to setting up your QNAP Device

Download the Azure App on your QNAP and Configure it

  1. The first thing you’ll need is the Azure App on your QNAP Device. Just got to the App Center, search for Azure. You should see the Azure Storage App you can install. In the screen shot below, I’ve already installed it.
    10-AzureApp
  2. Once the App is installed, open it up to configure your Azure Storage Account
    11-OpenAzureApp
  3. In the Account tab, click to create a new
    12-AzureAppCreateAccount
  4. Enter a Display Name, this is a friendly name and can be whatever you want
  5. Enter the Storage Account, this is the name of the storage account you just created. In my case it was myqnapbackup
  6. Put in the access key for your storage account. You can get this from the setting of your storage account in the Azure Portal.13-AccessKeys
  7. If you’re in China, set the region. Options are only Global and China
  8. Click OK
    14-AzureAppCreateAccount2
  9. One last setting I would recommend is to set the rate limit on your subscription.
    14.1-ClickRateLimit
  10. Configure the Rate Limit and the Days/Times the rate limit applies. I recommend configuring a rate limit during the times you’ll be using the internet. Without a rate limit the backup will consume every bit of bandwidth you have available. Click OK
    14.2-RateLimitSettings

Configure Backup Jobs

  1. Go to the Backup Tab and click on “Create Job”
    15-CreateBackupJob
  2. Click Next
    16-BackupJob-01
  3. Select the Folder(s) you want to backup and click Next
    16-BackupJob-02
  4. Select the Backup Schedule, you have 4 options:
    1. Manually, you have to click start. You also have a checkbox to start immediately
    2. Periodically, Daily, Weekly or Monthly. Based on your selection you can select the number of times to run as week as well as days and times.
    3. Start Once, pick the day and time to run it
    4. After this job finishes, you can select another job that this job should follow. This prevents jobs from running simultaneously.
      16-BackupJob-03
  5. After setting the schedule, click next to move to the next screen.
  6. Here you have several configuration options:
    1. Only back up updated files, i.e. incremental backup
    2. Delete files from backup that have been deleted from the computer. You can also specify how many days to keep the files in backup once they have been deleted from your computer.
    3. Preserve ACL and extended attributes
    4. Encryption and Compression Settings
    5. Detect Sparse files
    6. Delete files from the source after they have been backed up (don’t evern select this option and the second option 🙂 )
      16-BackupJob-04
  7. Click Next
  8. You can also configure file filters to exclude files based on size and date. There are also options around shortcuts/symbolic links and hidden files and folders. Finally, you can also set inclusion/exclusion filters based on file types.
    16-BackupJob-05
  9. Finally, you get to set the backup location by specifying the Account, Container name, and the folder name. The folder you select must be an empty folder. If you type in a new name, the folder will be created for you. You can configure the block size as well as if you want to SSL for the connection.
    16-BackupJob-06
  10. Configure the Job name and Options as seen below. These are all pretty straight forward. Click Next
    16-BackupJob-07
  11. Confirm your backup job settings. Click Next
    16-BackupJob-08
  12. Finally Click Finish
    16-BackupJob-09

There you have it, your QNAP device will now backup all your files to Azure Cool Storage. As recommended in the configuration, I would break out your folders into multiple jobs so you can schedule them to run at different times to save on resources. You can also set your backup schedule according to how often files get updated. You may want to have some files backed up daily, while other may only need to be done weekly. Overall impressions so far is this backup option works really well and I love all the flexibility in configuration options.