Rsync not sync-ing :(.

Status
Not open for further replies.

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
If you're looking to sync between 2 freenas boxes I'd look at ZFS replication.

If you're looking to move stuff from a Windows machine to freenas you should just need to enable rsync service in freenas and then use some commands on your windows box.

I use something like this in terminal on the Mac to sync up a HDD to freenas:

Code:
rsync -avz /Volumes/IMAC\ HDD/ root@<IP_ADDRESS>:/mnt/pool/backup/
 

James Richardson

Explorer
Joined
Apr 10, 2017
Messages
59
I think ideally I'd like to "sync/copy" my "data/shares" to another server for backup purposes and not physically move it to another server.

I wanted to do some testing from the data share on my 1st freenas to my 2nd freenas, i assumed it will make a copy to the 2nd from the 1st, is this not quite the case?

I would like to get windows servers shares copying data to the freenas server eventually, again for backup purposes.

Is the guide correct for the Rsync between 2 freenas servers??

Thanks
James
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
No idea! I wouldn't use rsync to keep a sync/copy of data/shares on another freenas box, I'd use the built-in ZFS replication.

My use-case isn't too different. I copy files from my Mac to freenas1 using rsync (using command above about once week) and have replication setup between freenas1 and freenas2 which copies everything overnight on a daily basis.
 

James Richardson

Explorer
Joined
Apr 10, 2017
Messages
59
No idea! I wouldn't use rsync to keep a sync/copy of data/shares on another freenas box, I'd use the built-in ZFS replication.

My use-case isn't too different. I copy files from my Mac to freenas1 using rsync (using command above about once week) and have replication setup between freenas1 and freenas2 which copies everything overnight on a daily basis.

Ok thank you :smile:, do i need to install any software to run the commands on a Windows server for it to Replicate like on your Mac does?

Thanks
James
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
Again, not sure if rsync is built into Windows or if you need to install something.
 

James Richardson

Explorer
Joined
Apr 10, 2017
Messages
59
Ok, so I've gone through the Replication option to replicate a local volume to another, Data_1 to Data_2 and the status is "up to date" but doesn't appear to have worked.

I did have the Remote key issue "No ECDSA host key is known for servername and you have requested strict checking" before but appears to be ok now and is now in an "up to date" state.

It appears to have made a folder called "Data_1" but there is nothing in there, Screenshots attached.

Thanks
James
 

Attachments

  • Replicate.JPG
    Replicate.JPG
    51.2 KB · Views: 284
  • Data shares.JPG
    Data shares.JPG
    26.4 KB · Views: 273
  • Data_2.JPG
    Data_2.JPG
    29.7 KB · Views: 270
  • Data_1.JPG
    Data_1.JPG
    29.6 KB · Views: 263

James Richardson

Explorer
Joined
Apr 10, 2017
Messages
59
Sorry been impatient, it's done it now but it was only 160MB, didn't think it would take an nearly an hour to do that.
 
Status
Not open for further replies.
Top