Sync FreeNAS Volume to External USB Drive

Status
Not open for further replies.

DOHM

Dabbler
Joined
Feb 4, 2013
Messages
14
Hi All,

I have a FreeNAS 8.3.0 System and have successfully created a Windows share that I am able to write/read to. I have scheduled Synctoy to transfer folders from my Windows machine to my FreeNAS Windows share, which works fine, but I would now like to sync my FreeNAS volume to an external USB.

I have successively mounted an external USB to my FreeNAS system itself that I have also set up as a Windows Share for now just to fool around with.

My main question is: What is the best way to sync files between volumes on FreeNAS? Can Rsync be used to sync two volumes on the same system? Or should I just schedule it through Synctoy on my Windows machine?

Thanks,
J
 

HAL9000

Dabbler
Joined
Jan 17, 2013
Messages
19
I can confirm Rsync can be used to sync two pools on the same FreeNAS system.

Set up Rsync task to push from source folder of pool A.
Set up Rsync module to receive to target folder pool B.

Don't forget to turn on Rsync under the Services tab.

Good luck
 

DOHM

Dabbler
Joined
Feb 4, 2013
Messages
14
I can confirm Rsync can be used to sync two pools on the same FreeNAS system.

Set up Rsync task to push from source folder of pool A.
Set up Rsync module to receive to target folder pool B.

Don't forget to turn on Rsync under the Services tab.

Good luck

Cool Cool Cool

I keep getting confused with Rsync, modules, and tasks.
 

JaimieV

Guru
Joined
Oct 12, 2012
Messages
742
rsync "modules" can just be thought of as rsync "shares". Same thing really, just odd terminology.
 

DOHM

Dabbler
Joined
Feb 4, 2013
Messages
14
I set up a Rsync Task to Push Pool "A" every 5 minutes as a test. For remote host I put the same IP to log into FreeNAS with.

I set up a Rsync Module to a Path on Pool "B", with the same IP as the Rsync Task in Allowed Hosts.

I keep checking the the Path on Pool B and none of the files are there from Pool A?

Is there something else I'm forgetting to do? Something with the Host address? Permissions?
 

HAL9000

Dabbler
Joined
Jan 17, 2013
Messages
19
I have the following settings.

------------------------------------------------------------------
Rsync Tasks
path /mnt/pool1/Backups
remote host 192.168.212.212 (this is the ip address of the FreeNAS)
Rsync mode Rysnc module
Remote Module Name 2backup
Direction Push
User root
checked boxes Recursive, Times, compress, Preserve permissions
Extra options -p --chmod=ugo=rwX
Enabled box checked
----------------------------------------------------------------------
Rsync Module
Name 2backup
Path /mnt/pool2
Access Mode Read and Write
Maximum connections 0
User root
Group wheel
-----------------------------------------------------------------------

The above set up copies the Backups folder with all sub files and folders to
/mnt/pool2/Backups

Under Sharing do you have shares setup?
I have CIFS shares set up on each pool.

Backups
Name Backups
Path /mnt/pool1/Backups
Checked boxes Browsable, Inherit, Export Recycle, Allow Guest Access, Only Allow Guest Access
Hosts Allow 192.168.212.0 /24

-----------------------------------------------------------------------------
Temp
Name Temp
Path /mnt/pool2
Checked boxes Browsable, Inherit, Export Recycle, Allow Guest Access, Only Allow Guest Access
Hosts Allow 192.168.212.0 /24
----------------------------------------------------------------------------------------

Since I am the only one using my network, it is set up to allow all my computers and tablets to access the server files. Once begin connecting up to allow VPN access, I will be locking down the Hosts Allow to specific computers and fix the other settings to limit who can access specific files.

Hope this helps you .
 
Status
Not open for further replies.
Top