FreeNAS Rsync ConfigurationTo set up your Source FreeNAS server Rsync Configuration, log in to your source Freenas server (Figure ZZE).
Select the Services\Rsync tab. Click the Enable checkbox and click the Save and Restart button (Figure ZZF).
Select the Server tab and the Modules tab. Click the Add icon (Figure ZZG).
You'll see the Services | Rsync | Server | Module | Add window. Enter a name and a comment (I've selected "testmod" as my name and comment) and click the Browse button in Path to define your source Rsync share (Figure ZZH).
Click the share you want to sync. The path will change to reflect that path (in my case, /mnt/testshare) and then click OK (Figure ZZI).
Verify your settings and click the Add button at the bottom of the Services | Rsync | Server | Module | Add screen (Figure ZZJ).
At the summary page, verify your settings and then click the Apply Changes button (Figure ZZK).
Select the Local tab. Click the Add Module icon (Figure ZZL).
At the Services|Rsync|Local|Add page, in Source Share, click the Browse button (Figure ZZM).
Double-click the appropriate source share, verify that the path is correct, and click OK (in my case, /mnt/Testshare) (Figure ZZN).
In the Destination Share, enter the IP address and path of the destination share in the format [ipaddress::sharepath]. In my case, my destination server was 192.168.2.31::testb. Please note that you can use FQDN if your FreeNAS is registered with your DNS server or otherwise configured to resolve (Figure ZZO).
Select your Synchronization Time preferences. I've selected every 5 minutes, every hour, every day, every month, and all weekends. Click the Add button at the bottom of the page. Click Apply Changes (Figure ZZP).
To target FreeNAS server Rsync configuration, log in to your target FreeNAS server, select Services|Rsync from the main menu. Check the Enable checkbox and click the Save and Restart button (Figure ZZQ).
In the Services|Rsync|Client window, click the plus icon (Figure ZZR).
In Local Share, click the Browse button (Figure ZZS).
Select your target path (in my case, mountpointb) and verify the correct path (/mtn/mountpointb) for the destination Rsync path and click OK (Figure ZZT).
In the Remote Rysnc Server field, enter the source FreeNAS server (in my case, 192.168.2.30. Again, if your machine is registered with DNS, you can use FQDN). Select the Synchronization Time option that matches the settings you entered on the host machines (in my case, every 5 minutes all hours, all days, all months, and all days of the week). In Remote Module Name, enter the name of the source server module we created on the source, "testmod." Click the Add button at the bottom of the page (Figure ZZU).
Click Apply Changes (Figure ZZV).
Open up a browse session to the share on the Source FreeNAS server and the Target FreeNAS server. Drop a file into the source and wait, and if everything is set up correctly, the file should shortly appear on the target share, as well. Congratulations, you've configured an inexpensive NAS solution that does disk-to-disk data replication (Figure ZZW).
Stay on top of the latest Microsoft Windows tips and tricks with TechRepublic's Windows Desktop newsletter, delivered every Monday and Thursday. Automatically sign up today!
Donovan Colbert has over 16 years of experience in the IT Industry. He's worked in help-desk, enterprise software support, systems administration and engineering, IT management, and is a regular contributor for TechRepublic. Currently, his professional role is as a Linux support engineer for a fast-growing Linux/FOSS consultancy group. You can follow him @dcolbert on Twitter or his personal blog, located at http://donovancolbert.blogspot.com.