Unraid Sync Folders

Posted onby
Windows

Yup, this is what I use for simple syncs to unRAID. So you can do something like: robocopy C:UserscdubzserverDocuments X:Documents /MIR /R:5 /W:0 This assumes you have your unRAID share mapped to X. The Syntax is just robocopy source destination switches. /MIR is mirror, and will do what you want. It might be a little extra setup, but you can configure an account on each computer for each of the 4 employees and simply sync their files to each computer (using files on demand, you minimize the local storage). No need to manage a storage server in this case, and the user's files will follow them to whatever station they are using.

unRAID has long had the capability to integrate itself into Active Directory for centralized permission and user management but this process has never been fully documented. After lots of searching around on the forums and PMing a few users I’ve consolidated my findings into this post. I am also assuming you already have a Window Server setup with: DNS and Active Directory (AD) roles, and a functioning domain.

Unraid Sync Folders Free

Overview

SyncUnraid sync folders free
  • Setup unRAID network settings
  • Join unRAID to an active domain
  • Create groups in domain for centralized management
  • Set permissions on files

Network Settings

Unraid sync folders download

unRAID needs to be pointed at your Windows Server that runs DNS and AD. This is done through the unRAID WebGUI under Settings -> Network Settings . Update the DNS Server 1 box with the IP Address of your DNS server.

Join to Domain

Unraid Sync Folders Chrome

Now that we have DNS setup we can join unRAID to the domain. Stop the array so that we can change the SMB settings to AD from the Main page. Next, in the unRAID WebGUI navigate to Settings -> SMB and change the dropdown to (Yes – Active Directory) and press “Apply”.

Next we will go to the Active Directory Settings tab in that same page. I am using the Microsoft domain info, change to your domain info.

  • AD domain name (FQDN): CONTOSO.COM
  • AD short domain name: CONTOSO
  • AD account login:
  • AD account password:

Press Join and you should see the text change from “Not Joined” to “Joined”.

  • AD initial user:
  • AD initial group:
Unraid

I used my everyday AD login account as the initial owner and Domain Admin as the initial group (I know thats lazy) and press Apply.

Go ahead and start the array. The default permissions are now that all Domain Users have RW access to every file, we will update that in the next step.

Create Groups in AD

From the recommendation of Korpo53 on the unRAID forums we are going to make an AD Group for RO (Read Only) and RW (Read/Write) for every share on unRAID so that you can manage everything in AD without changing file permissions every time. You can see my naming scheme of to the right. I chose to do UNRAID--

File Permissions

Now comes the part that had me confused for the longest time. I assumed you would be able to set permissions for users and groups directly in the unRAID WebGUI. You cannot. You need to set the permissions through a Windows machine that is logged in with your “initial owner” AD account that we set when unRAID joined the domain.

Unraid Sync Folders Download

  1. Use file explorer to view all of your unRAID shares (IE TOWER or 192.168.1.2)
  2. Right click on the first share and go to properties
  3. Press “Edit”, then Add. Add the RW and RO for the share you are editing and give “Full Control” to the RW account. By default the RO user should only have the rights for read only.
  4. Now we need to remove the default unRAID permissions and apply to all child items. Click “Advanced”
  5. Remove the “Everyone” and “Domain Users” that have “Full Control” and click the “Replace all child object permission entries” and press “Apply”.
  6. Repeat this process for every one of your shares, adding the correct groups.
  7. NOTE: If any of the permissions break and you lose access to your files you can run New Permissions from the Tools menu in the unRAID WebGUI to reset all permissions.
  8. Now you can remove/add users to each AD group for the permissions that you want.

Unraid Sync Folders Windows 10


As with any AD permission changes you may need to log-out/log-in as that user to get the updated permissions.

As ever, don’t forget our support forums if you need assistance with the contents of this post.

PRE-REQUISITES
- Rsync plugin
- User Scripts plugin (if you want to schedule the jobs)
- Unassigned Devices plugin
RSYNC TO UNASSIGNED BACKUP DRIVE
I often configure rsync jobs to backup critical data to an unassigned drive outside the array. My scheduled job looks something like this:
rsync --archive --delete /mnt/user/SourceFolder/ /mnt/disks/TOSHIBA_MD05PBA60_1900876554/DestinationFolder/
RSYNC TO ARRAY BACKUP DRIVE
I read about a very interesting alternative backup approach with UnRAID. Instead of creating an unassigned drive to use for the backup, you actually add it to your array. Configure your shares to never use this drive. The idea here is that the backup drive will be a member of the array, but completely excluded from any and all shares. Then setup an rsync job like this:
rsync --archive --delete /mnt/user/SourceFolder/ /mnt/disk4/DestinationFolder/
* Where disk4 is your backup disk.
An advantage to this approach is that the backup drive is an array member, so it's protected by parity. A disadvantage is that the drive is an array member, so it's not as easy to just pull the backup drive out if necessary. One scenario that comes to mind is if you want to rotate the backup drive with another one (e.g. off-site). Physically pulling the drive would affect the array and parity would have to be rebuilt. It would be easier to use an unassigned drive in that scenario.