2

Moving my data to Azure and Office 365 using Synology Cloud Sync

 2 years ago
source link: https://itwire.com/guest-articles/moving-my-data-to-azure-and-office-365-using-synology-cloud-sync.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Wednesday, 28 July 2021 14:56

Moving my data to Azure and Office 365 using Synology Cloud Sync

By Tao Yang

Guest Review: Syncing data between on-prem locations and public cloud has become a very common practice for many organisations, and sometimes even for home users.

I have seen organisations using solutions from storage providers to sync data to Azure Storage Accounts and other cloud providers. Personally, in order to prevent hardware failure, and being able to access my files while I’m away from home, I’ve also been wanting to migrate some of my data from my NAS to Microsoft OneDrive and Azure Storage Accounts.

A few weeks ago, Synology reached out to me and asked me if I’d be interested to review their free Cloud Sync solution with Azure Storage. Since I’ve been thinking about replacing two 6-year old NAS devices at home and wanting to move some files to Azure and OneDrive, I have accepted the offer. Although Synology supplied me with the NAS device (DS920+), this is not a sponsored post, I’m only sharing my opinion based on my own experience.

Installing Cloud Sync Permalink

Synology Cloud Sync is extremely easy to configure. Once you’ve logged in to the web portal of your Synology NAS, it can be found in the Package Center, you can install it with one click (and follow the wizard).

Once installed, we can start creating sync jobs. Cloud Sync supports many public cloud providers such as Microsoft Azure, OneDrive, OneDrive for Business, AWS S3, GCP Cloud Storage, Google Drive, Dropbox, etc. I’ll cover Azure Storage Accounts and Microsoft OneDrive (personal) in this post.

SYNOLOGY 1

Azure Storage Account Permalink

Firstly, I have created an Azure Storage Account in the Australia Southeast region since it’s the closest region to my home. I connected the storage account to a VNet and added my home broadband’s IP address to the firewall rule so the NAS device can reach it (as shown below). This restricts access to the storage account only from the VNet it connects to, my home IP, and other Azure services (Since I’ve ticked Allow trusted Microsoft services to access this storage account).

SYNOLOGY 2

I then created a blob container in the storage account

SYNOLOGY 3

Then on the Synology NAS web portal, I created a sync job with the following information:

SYNOLOGY 4

SYNOLOGY 5

  • Service endpoint: Azure Global
  • Storage account: <my storage account name>
  • Access key: the primary or secondary key for the storage account
  • Blob container name: <my blob container name>

Then I can choose the local path (a share on the NAS), and the remote path (in Azure storage blob), I can also select the sync direction. In this case, I’ve chosen bi-directional so changes from both ends will be replicated to each other.

SYNOLOGY 6

I can also specify a schedule, i.e. stop sync during busy hours to save network bandwidth.

SYNOLOGY 7

I can still modify the settings after the jobs are created. For example, I can configure the polling interval, set network throttling, folder exclusions, file filter (based on file extensions), add/remove/modify sync folders etc.

SYNOLOGY 8

SYNOLOGY 9

SYNOLOGY 10

SYNOLOGY 11

Depending on the size of the folder and your Internet link speed, the initial synchronisation can take a while. Once completed, you’ll see the status as “Up to date”

SYNOLOGY 12

At this stage, any changes on the NAS folder or the blob container will be replicated. I’ve done some tests (as shown below):

SYNOLOGY 14

  1. I copied a binary file (AzurePortalInstaller.exe) to the NAS folder, the synchronisation started straightaway, the file got uploaded to the Azure storage blob.
  2. I deleted some files and folders from the NAS folder (“iTunes”), synchronisation started straightaway, those files and folders got deleted from the storage blob.
  3. I deleted some files from the storage blob container (“Data Migration Assistant *”), it took few seconds for the NAS device to poll the changes, and the local copy was updated accordingly. – I’m guessing this is dictated by the Polling interval value you have configured earlier.
  4. I created a new text file (“New Text Document.txt”), then renamed it to “test.txt”, then added a line to it. each operation (new file, rename, update) triggered synchronisation instantaneously.
  5. On the Azure Storage Account, I modified the test.txt file using Azure Storage Explorer and saved the change directly to the storage account. Again, within few seconds, Synology NAS detected the change and downloaded the file from the storage account.

Microsoft OneDrive (Personal) Permalink

With Microsoft OneDrive, I have 2 real use cases:

  1. Since my old NAS devices are running out of space, I have some files that I stored on my personal OneDrive, they are not available locally at home. Although I’m happy to keep those files there, I’d like to have them stored locally at home as well. So I created a sync job to sync with a folder in my OneDrive.
  2. My daughter’s iPad uploads photos to iCloud automatically and she’s getting close to the free quota. I don’t want to pay for additional storage since everyone in the family is on the Office 365 Family plan which offers 6 users 1TB of space on OneDrive. It is also easier to share them with other family members and we can access OneDrive from any device such as PC, Mac, Android, iOS, etc. (unlike Apple iCloud). So I manually downloaded those photos from iCloud to a NAS folder, I want to automatically upload them to her OneDrive so that she can still access those photos via the OneDrive app on her iPad if she needs to.

Setting up sync jobs for OneDrive is super easier. All you need is to sign in to your Microsoft Account when prompted, and give user consent:

SYNOLOGY 15

SYNOLOGY 16

You will be prompted to be redirected to the Synology NAS web portal (a typical oAuth workflow):

SYNOLOGY 17

All the other settings are the same as the Azure Storage, you can choose sync direction, scheduling settings, pulling interval, network bandwidth throttling, etc.

For the OneDrive connection, I performed similar sets of tests that I previously performed for the Storage Account, the behaviour is very similar – locally initiated changes trigger synchronisation which gets replicated to OneDrive as soon as the changes are made. However, changes on the OneDrive don’t seem to get replicated to the local folder as quickly as when syncing with Azure Storage Account. the default polling interval for OneDrive is 600 seconds (every 10 minutes), I tried to decrease it to 15 seconds, but it doesn’t seem like Cloud Sync is polling OneDrive every 15 seconds as configured. the files did appear on the NAS share after around 10 minutes though. This is not a big deal, I can live with it.

Conclusion Permalink

Overall, I’m pretty happy with the feature Cloud Sync offers.

For Microsoft OneDrive, although the polling interval is a little bit too long in my opinion, it is perfect for what I need to achieve. Moving forward, I can definitely see myself setting up more and more folders to sync, store a local copy of my OneDrive folders on the NAS so I don’t have to keep cleaning up spaces from the SSDs on my PCs because once you’ve accessed a file via OneDrive client, the file gets downloaded and stored on your PC permanently.

With Azure Storage Accounts, in my opinion, since Synology NAS devices are generally used by home users and small to medium businesses, it offers a very cost-effective way to migrate/synchronize files to cloud platforms. The configuration is pretty easy and the synchronization is pretty effective based on my testing. However, for large enterprises, I believe it’s missing some features:

  1. It only supports 2 Azure environments: Azure Global and Azure China. It doesn’t support other environments such as Azure Germany, Azure Government
  2. It does not support Azure Files, only blob storage. This limit prevents people who need to access the fires on the Storage Accounts via SMB.
  3. To sync to Azure Storage Account, it uses Storage Account access keys. Some organisations prohibit users from using access keys. It would be good if we can use Azure AD Service Principals that have sufficient RBAC permissions to access the storage account.

The documentation for the Synology Cloud Sync can be found here: https://www.synology.com/en-global/knowledgebase/DSM/help/CloudSync/cloudsync.

Lastly, I’d like to thank Synology for offering me this great device to work with. I’ve already loaded it with 4x12GB HDDs and I’m currently in the process of migrating my files to and from other NAS devices and various cloud storage.

Subscribe to ITWIRE UPDATE Newsletter here

GRAND OPENING OF THE ITWIRE SHOP

The much awaited iTWire Shop is now open to our readers.

Visit the iTWire Shop, a leading destination for stylish accessories, gear & gadgets, lifestyle products and everyday portable office essentials, drones, zoom lenses for smartphones, software and online training.

PLUS Big Brands include: Apple, Lenovo, LG, Samsung, Sennheiser and many more.

Products available for any country.

We hope you enjoy and find value in the much anticipated iTWire Shop.

ENTER THE SHOP NOW!

INTRODUCING ITWIRE TV

iTWire TV offers a unique value to the Tech Sector by providing a range of video interviews, news, views and reviews, and also provides the opportunity for vendors to promote your company and your marketing messages.

We work with you to develop the message and conduct the interview or product review in a safe and collaborative way. Unlike other Tech YouTube channels, we create a story around your message and post that on the homepage of ITWire, linking to your message.

In addition, your interview post message can be displayed in up to 7 different post displays on our the iTWire.com site to drive traffic and readers to your video content and downloads. This can be a significant Lead Generation opportunity for your business.

We also provide 3 videos in one recording/sitting if you require so that you have a series of videos to promote to your customers. Your sales team can add your emails to sales collateral and to the footer of their sales and marketing emails.

See the latest in Tech News, Views, Interviews, Reviews, Product Promos and Events. Plus funny videos from our readers and customers.

SEE WHAT'S ON ITWIRE TV NOW!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK