Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (â‹®) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

adding an azure file share

Featured Replies

Hi, 

 

First some quick background so you understand what I want to accomplish and why.

 

I don't have any backup for my important things on Unraid.

I do have $150 monthly credits on Azure, so backup for free 😃

 

I do know that rclone exists as a docker, but rclone only supports Azure Blob and not Azure File Share, with Blob storage I don't get backup and snapshots as I get with Azure File Shares. If I use Blob storage and something happens on my unraid (files are corrupted or deleted), the next rclone sync will corrupt or delete the files on Blob Storage.

So if I create a File Share I can mount that share in a Linux machine, I have already tested this on a VM.

So what I want to do is to mount my Azure File Share in Unraid and then use rsync to mirror some folders to Azure.

 

This is what I did on my test VM (generalized strings in the example).

 

sudo mkdir /mnt/test
if [ ! -d "/etc/smbcredentials" ]; then
sudo mkdir /etc/smbcredentials
fi
if [ ! -f "/etc/smbcredentials/mystorageaccount.cred" ]; then
    sudo bash -c 'echo "username=mystorageaccount." >> /etc/smbcredentials/mystorageaccount..cred'
    sudo bash -c 'echo "password=supergreatpassword" >> /etc/smbcredentials/mystorageaccount..cred'
fi
sudo chmod 600 /etc/smbcredentials/mystorageaccount..cred

sudo bash -c 'echo "//mystorageaccount.file.core.windows.net/test /mnt/test cifs nofail,vers=3.0,credentials=/etc/smbcredentials/mystorageaccount..cred,dir_mode=0777,file_mode=0777,serverino" >> /etc/fstab'
sudo mount -t cifs //mystorageaccount..file.core.windows.net/test /mnt/test -o vers=3.0,credentials=/etc/smbcredentials/mystorageaccount..cred,dir_mode=0777,file_mode=0777,serverino



I´m quite new to Linux so my main questions is, how to I translate this to be working on unraid?
Where shall I put my .cred file so it persists after reboot?
Where shall I put the mount string so it persists after reboot and auto mount?

 

Is there anything else I shall think about or do you have any concerns regarding this setup?

Edited by lusitopp

  • Community Expert

I think this would all be handled for you if you use the Unassigned Device plugin to mount the azure share.    It would handle both saving credentials and mounting the share on reboot.   Should be easy enough to try it.

  • Author
15 minutes ago, itimpi said:

I think this would all be handled for you if you use the Unassigned Device plugin to mount the azure share.    It would handle both saving credentials and mounting the share on reboot.   Should be easy enough to try it.

 

That was the first thing I tried, didn't get it to work..
it only says smb is offline and the mount button is greyed out.
 

  • Community Expert
47 minutes ago, lusitopp said:

it only says smb is offline and the mount button is greyed out.

It might be worth asking in the UD plugin support thread?

Can you ‘ping’ that address from the Unraid server?   As far as I know that is how UD determines if the server is online.

  • Author

Ok, I will check over there to get help with this within the plugin, but, if the plugin can't handle this i still need help with how to configure this in Unraid, so no suggestions about how to do that?

  • Author
On 4/8/2022 at 3:30 PM, itimpi said:

It might be worth asking in the UD plugin support thread?

Can you ‘ping’ that address from the Unraid server?   As far as I know that is how UD determines if the server is online.

 

confirmed that it need to respond to ping, and it doesn't do that. so this can't be solved with UD. Need to solve it somehow else.

  • 3 years later...
On 4/9/2022 at 9:57 AM, lusitopp said:

 

confirmed that it need to respond to ping, and it doesn't do that. so this can't be solved with UD. Need to solve it somehow else.

Did you ever come up with a solution for this? I'm looking to do the same thing.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.