SOLVED Setup rsync local in FreeNAS 10

Status
Not open for further replies.

wkn

Dabbler
Joined
Dec 5, 2014
Messages
29
Hi!

I try to setup rsync to backup a volume to another volume in same computer.

I created a module in rsyncd to point to the destination dataset, user is root/wheel.

I created a rsync task to use the module also as user root, but when testing i got the error:

Description

Rsync Task returned with non-zero returncode. Error: b'No ECDSA host key is known for 127.0.0.1 and you have requested strict checking.\r\nHost key verification failed.\r\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]\n'

Please give me a hint, wgat to change in my setups.

BR
wkn
 

snaptec

Guru
Joined
Nov 30, 2015
Messages
502
host key is missing.
Try execute:
ssh-keyscan -t ecdsa 127.0.0.1 >> /root/.ssh/known_hosts

Besides that, locally zfs send/recv would be better :)
 

wkn

Dabbler
Joined
Dec 5, 2014
Messages
29
Hi snaptec,

thanks for your quick response.

i perform the command in ssh connection and nowi got another error:

Description

Rsync Task returned with non-zero returncode. Error: b'Permission denied (publickey,password).\r\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]\n'


I had same setup in 9.10U2 runnig without any issues.

Working with zfs commands is fully new to me.

BR
wkn
 

snaptec

Guru
Joined
Nov 30, 2015
Messages
502
You are connecting through ssh. Not to the rsync module I think.

There should be your problem.

You may read about setting up zfs replication.


Gesendet von iPhone mit Tapatalk
 

wkn

Dabbler
Joined
Dec 5, 2014
Messages
29
I created a rsync module "backup" with destination path /mnt/volreco/dsrsync and user root

I created a rsync task with rsync type module, as push with remote user root at remotehost 127.0.0.1 for source /mnt/voldata and remote module backup

Should be correct?
 

snaptec

Guru
Joined
Nov 30, 2015
Messages
502
Should be, but I did not try rsync in FN 10.
can you specify the port?
If yes set it manually to 873 and try.


Gesendet von iPhone mit Tapatalk
 

wkn

Dabbler
Joined
Dec 5, 2014
Messages
29
Rsyncd is running on Port 873 and has only the one module backup defined

Same error still occurs
 

snaptec

Guru
Joined
Nov 30, 2015
Messages
502
Yeah, but is the client task connecting on port 873 or tries to initiate on port 22?
Your logs should answer that question.



Gesendet von iPhone mit Tapatalk
 

wkn

Dabbler
Joined
Dec 5, 2014
Messages
29
Rsync now works for me.

Just created key with ssh-keygen in /root/,ssh and copied id_rsa.pub to authorithed_keys
 
Status
Not open for further replies.
Top